B4J Question [S O L V E D] modify items in an option in a preferencedialog

Discussion in 'B4J Questions' started by afields, Jul 18, 2019.

Tags:
  1. afields

    afields Member Licensed User

    hello to all!
    i've used form builder to build a form with 2 option fields.
    Is there a way to modify the items in the second option when i select one item in the first option?
    Thank you
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    You can update the options at runtime, however it is currently not possible to do so while the dialog is open.

    If you are a bit adventurous then it will probably won't be too difficult to do it by modifying the source code.
     
    afields likes this.
  3. afields

    afields Member Licensed User

    i've modify B4xPreferenceDialog to include what i've asked.
    My approach:
    1 Public Methods:
    1 Private Method:
    Modification of
    to allow options in runtime.

    the public method can be :
    1 -
    or 2 -
    If there are more then one field to include then the first one, is declared with 1 and the second and others with 2. The first parameter is the field to complete ( Option) the second is the field whose value we want ( can be more then 1 field) and the last one is a name or " " if we just want to indicate another field.
    The sub_to_execute is a CallSub with 1 parameter that is a list of values taken from the fields of the form ( must be in an activity).
     

    Attached Files:

    Erel likes this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice