Page 1 of 1
Problem with choices parameter value for a textbox
Posted: Tue Sep 03, 2019 9:10 am
by aa73
Hello,
I have a problem with the "choices parameter valu" of a field "textbox".
I have a grid with a button to modify record (see screen 1).
When I click the button, I have the window that appears (see screen 2), however, the textbox field does not work correctly.
I would like to fill in the field "choice parameter value" with an output field (see screen 3).
The problem is that it does not work.
Any solution?
Thank you
Regards
Re: Problem with choices parameter value for a textbox
Posted: Tue Sep 03, 2019 12:18 pm
by Scott Klement
Please provide a JSON dump of the screen. You can do that by running your program and when the display is on the screen press Ctrl-F9. This will download a JSON file that you can upload to the forum, here.
Also, can you explain you wish to happen? When the user is typing in the textbox, you want it to find a matching database field, and it should only query fields that match "OutputField"?
Re: Problem with choices parameter value for a textbox
Posted: Wed Sep 04, 2019 3:25 am
by aa73
Hello,
Here is the json file.
What I want is that when the user types in the text box, the textbox part is populated with the correct file and company value.
On the first screen, the user has a grid with company code, invoice number and supplier code ...
When he wants to modify the record, he can modify only the supplier code.
In my supplier file, a supplier is declared in a company.
That's why I want to restrict the choice of the user with the company code.
I hope to be pretty clear in my explanations.
Regards
Re: Problem with choices parameter value for a textbox
Posted: Wed Sep 04, 2019 2:48 pm
by Scott Klement
I looked at your JSON file. You have the following defined for the choices parameter value:
Code: Select all
script: get("OutputField4");console.log(get("OutputField4"));
This will not work because it is trying to set the value of the parameter to the return value of the console.log() function. Console.log() does not return a value, so this parameter value will not be set.
Please change the property to this:
Re: Problem with choices parameter value for a textbox
Posted: Thu Sep 05, 2019 2:49 am
by aa73
Hello,
I'm sorry, but it's not working.
Resolve Re: Problem with choices parameter value for a textbox
Posted: Thu Sep 05, 2019 3:09 am
by aa73
Hello,
I delete the informations "data-driven auto-complete" of the field.
I recreate the information and now it's work.
Thanks you for your help.