React to lookup question

This sub-forum is for discussing all topics related to AppGini Helper JavaScript Library, provided by bizzworxx as a third-party AppGini plugin.
Post Reply
asharaq
Posts: 2
Joined: 2021-10-07 12:40

React to lookup question

Post by asharaq » 2021-10-07 12:57

Hello members,

I am an IT Engineer, my field of work is limited to Network & Servers... but I always try to learn new things.. coding is totally different for me... that's why I purchased both Appgini and Appgini helper (one line of code is ok for me) ;)

I have read and implemented react to lookup method from Appgini Helper website, but I want to try something else, I don't know if it is possible...

in the attached, I want to make each field appear once the user has selected one by one..

sorry for my English, I hope it is clear ,, thanks in advance..
Attachments
2021-10-07_15-52-44.jpg
2021-10-07_15-52-44.jpg (56.51 KiB) Viewed 1305 times

asharaq
Posts: 2
Joined: 2021-10-07 12:40

Re: React to lookup question

Post by asharaq » 2021-10-13 05:23

@jsetzer, kindly help me on this please..

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1807
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: React to lookup question

Post by jsetzer » 2021-10-13 09:01

Interesting idea.

First, hide all but the first using .hide() method.

Next, register onChange handler for all lookups

In each onChange event handler, check the value using .getValue method.
Then hide or show the next lookup.

It may become more difficult when opening existing records having values already selected.

You can evaluate dv.isInsert() to see whether you are in insert mode or in edit/view mode.

I foresee problems when field order changes and when for example lookup 4 has value but lookup 3 not.
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

You can help us helping you:
Please always put code fragments inside [code]...[/code] blocks for better readability

AppGini 24.10 Revision 1579 + all AppGini Helper tools

Post Reply