Dynamic Drop Down

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
nazirul_fitri
Posts: 21
Joined: Thu Sep 15, 2016 7:00 pm

Dynamic Drop Down

Post by nazirul_fitri »

Hi there,

I have a few question referring to below picture:
VLFONE.PNG
VLFONE.PNG (94.85 KiB) Viewed 6827 times
1) Dynamic dropdown/picklist
- How can I make the 'CAWANGAN' value appear depends on the 'NEGERI' selection?

2) How do I make the horizontal scroll for the instances list? As you can see the column is crowded.

3) 3) Why the decimal point doesn’t appear in the instance list although I have choose the intrinsic functions for each column. See picture below:
INSTANCES.PNG
INSTANCES.PNG (127.43 KiB) Viewed 6827 times
hope there has someone to help me on this issue. Thanks in advance
MarkDale
Posts: 116
Joined: Wed Dec 02, 2015 10:06 am

Re: Dynamic Drop Down

Post by MarkDale »

Hi,

Re issue 1 - Dynamic dropdown

It depends on how you have coded the NEGERI and CAWANGAN drop downs. If they are #PRIM_LIST controls visualized as dropdowns, then in general you have an event routine that handles NEGERI.ItemClick or ItemGotFocus that clears the CAWANGAN list and loads it with appropriate values:

Code: Select all

Evtroutine Handling(#NEGERI_DD.ItemClick)

#Com_Owner.Load_CAWANGAN

endroutine


Mthroutine Load_CAWANGAN

* Get #relevant CAWANGAN data as a list #MyData (say)

clr_list #CAWANGAN_DD

selectlist (#MyData) 
Add_entry #CAWANGAN_DD
endselect

Endroutine
If you want to post some code about how you have coded the drop downs, I can be more specific.


Issue 2. - Crowded instance list

There isn't currently any option to add horizontal scroll bars to the default instance list. You could either reduce the number of fields, or code your own simple snap in instance list like shipped example DF_T41I1O.

Issue 3. Decimals not showing

This should work ok if, in the instance list settings grid, you specify a value in the decimals column, and an edit code.
e.g.
the Decimals value is 2
the Edit Code value is edit code 1 (1,234.120)


Regards
Mark Dale
Last edited by MarkDale on Fri Oct 28, 2016 10:49 am, edited 1 time in total.
MarkD
Posts: 692
Joined: Wed Dec 02, 2015 9:56 am

Re: Dynamic Drop Down

Post by MarkD »

For Issue 2 you could also consider moving your filter to be on the top or bottom of the instance list - possibly rearranging the 3 drop downs to go across the screen.
Post Reply