Roberto
Posts: 13
Joined: Wed Jun 24, 2015 4:52 pm

Strange behaviour of the properties

Hello,
I need to save the connection parameters using the SqlConnectionDlg. In this form I set the "properties name" and when the user click on the "Next" button AI saves the values in my persistent properties (image 1). Obviously, when the form is shown the edit fields must be empty.
Now I close and reopen AI: the User Interface properties are moved into User Defined properties (images 2, 3). The problem is: User Defined properties need a default value. When moved from UI into UD the properties contain its name as default. In this way when the form is shown to the user the name of the properties is visible as default in the form but I need that edit fields remain empty

I need that edit fields remain unchanged and empty.
How can I solve this issue/strange behaviour?
Thanks and regards
Attachments
EDIT__...... are UI properties (must be empty)
EDIT__...... are UI properties (must be empty)
image3.PNG (15.73 KiB) Viewed 3583 times
Close and reopen AI: UI properties are moved into UD properties (???)
Close and reopen AI: UI properties are moved into UD properties (???)
image2.PNG (46.31 KiB) Viewed 3583 times
UD properties require default values and use their own name
UD properties require default values and use their own name
image1.PNG (83.97 KiB) Viewed 3583 times
Roberto
Posts: 13
Joined: Wed Jun 24, 2015 4:52 pm

Re: Strange behaviour of the properties

Last image of the process

Thanks and regards
Attachments
Fields are not empty but contain their own name
Fields are not empty but contain their own name
image4.PNG (37.63 KiB) Viewed 3582 times
Roberto
Posts: 13
Joined: Wed Jun 24, 2015 4:52 pm

Re: Strange behaviour of the properties

In the first post you have to see images from the third to the first
Roberto
Posts: 13
Joined: Wed Jun 24, 2015 4:52 pm

Re: Strange behaviour of the properties

Hello,
I solved the issue.
The problem was made by a circular reference in the Install parameters page: in the definition of the UD properties there are persistent properties and I set those value by reference to the UI value. This cause a circular reference and AI automatically creates the UD properties to set the value.
To change this behaviour I create the UD property with a generic value. When user clicks on the Next button I set the value of the UD from the fields of the form.

I'm sorry for the inconvenience and thanks in advance for your attention.
Regards,
Roberto
Attachments
Generic value is "Valore". On Next event new value is catch from the fields in the form
Generic value is "Valore". On Next event new value is catch from the fields in the form
Cattura.PNG (3.99 KiB) Viewed 3578 times

Return to “Common Problems”