Hi.
I am creating an order entering system i LongRange for a customer. When I have found the items and showed them in a list, I would like to have an order number (input field) and a + and a - icon, updating the order number.
I need some inspiration doing that. anybody want to share some code/design?
Thanks
/Klaus
RDMLX order +/-
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: RDMLX order +/-
When the order number is increased or reduced – is the new order number then displayed or actioned by server in some way that impacts what is displayed on the screen?
Re: RDMLX order +/-
Hi.
I the perfect World it should use Ajax to Update the ordre Lines on the server. But for a start it is okay that it just updates the order number on the screen and the they have to use a save button.
Could you please send the documentation on programming LongRange with Java Script to kno@futuradata.dk
I the perfect World it should use Ajax to Update the ordre Lines on the server. But for a start it is okay that it just updates the order number on the screen and the they have to use a save button.
Could you please send the documentation on programming LongRange with Java Script to kno@futuradata.dk
Re: RDMLX order +/-
Hi Klaus,
I have sent you a package consisting of a schema, some sample files and a document.
I would also recommend this post: http://longrange.lansa.com.au/viewtopic.php?f=12&t=296
Kind Regards,,
Pablo
I have sent you a package consisting of a schema, some sample files and a document.
I would also recommend this post: http://longrange.lansa.com.au/viewtopic.php?f=12&t=296
Kind Regards,,
Pablo
-
MarkDuignan
- Posts: 346
- Joined: Wed Apr 18, 2012 10:33 am
Re: RDMLX order +/-
You could use a drop down with the previous 20 and next 20 numbers (say) in it.
This is a common technique for entering and altering integers in relatively narrow possible value bands and it minimizes user input requirements and mistakes.
Or -
If you had "+" and '-' images beside the field you could attach an ExecScript operation to their OnClick events.
ECL scripts can extract and alter the value(s) of form view elements - so it could get the order number, increment it and then update it.
In the ‘LongRange LANSA Offline Advanced Tutorial’ you should be able to find several examples that do manipulation of data on the form by using local scripting.
The work 'offline' is somewhat misleading in this context - you can attach 'local' (on device) ECL scripting to online and offline forms.
If you do this then it might be best wrappered as a VL resusable part - consisting of the entry field, the + and - images and the local scripting.
Then it can be used on many forms
This is a common technique for entering and altering integers in relatively narrow possible value bands and it minimizes user input requirements and mistakes.
Or -
If you had "+" and '-' images beside the field you could attach an ExecScript operation to their OnClick events.
ECL scripts can extract and alter the value(s) of form view elements - so it could get the order number, increment it and then update it.
In the ‘LongRange LANSA Offline Advanced Tutorial’ you should be able to find several examples that do manipulation of data on the form by using local scripting.
The work 'offline' is somewhat misleading in this context - you can attach 'local' (on device) ECL scripting to online and offline forms.
If you do this then it might be best wrappered as a VL resusable part - consisting of the entry field, the + and - images and the local scripting.
Then it can be used on many forms