Page 1 of 1

Dynamic Drop Down

Posted: Thu Oct 27, 2016 5:08 pm
by nazirul_fitri
Hi there,

I have a few question referring to below picture:
VLFONE.PNG
VLFONE.PNG (94.85 KiB) Viewed 6831 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 6831 times
hope there has someone to help me on this issue. Thanks in advance

Re: Dynamic Drop Down

Posted: Fri Oct 28, 2016 10:23 am
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

Re: Dynamic Drop Down

Posted: Fri Oct 28, 2016 10:34 am
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.