aswinsrinivasan02
Posts: 11
Joined: Fri Mar 04, 2022 10:47 am

Unable to set Property Value On Click Of Button

Hi Team,
I have a custom dialog where I get a value from the user on a masked edit box. (To limit the user to type only 2 digits).
On the 'Next' button on the dialog, I used the published events and selected the 'Set Installer Property value'.
Under the Event Options:

Property: MASKEDEDIT_1_PROP
Argument: [LANE_PORT]
Condition: 1
SS1.png
SS1.png (84.02 KiB) Viewed 2184 times
I tried providing the square brackets for the property option. Upon saving and clicking on Edit again, this square bracket is not visible on the edit screen. But again, on the Published Events grid, am able to see that [MASKEDEDIT_1_PROP] is provided under Events & [LANE_PORT] available under Arguments.

During the installation, when clicked on the Next button, on the next dialog, I was trying to display the property value of the [LANE_PORT] in a label but able to see that only the default value is displayed and not the value provided in the masked edit box. Am I missing something here?
SS2.png
SS2.png (29.15 KiB) Viewed 2184 times
Regards
Aswin
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Unable to set Property Value On Click Of Button

Hello Aswin,

That happens because you need to set the LANE_PORT property to the input value (the value provided in the masked edit box).

Currently you set the MASKEDIT_1_PROP to the default value of the LANE_PORT property. You just need to swap these properties like this:

  • Set installer property:
    Property: LANE_PORT
    Argument: [MASKEDEDIT_1_PROP]
event.png
event.png (29.09 KiB) Viewed 2176 times
In this way you set the desired property (LANE_PORT) to the input value of the MASKEDEDIT_1_PROP property.

Hope this helps! Please let us know if you have other questions.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
aswinsrinivasan02
Posts: 11
Joined: Fri Mar 04, 2022 10:47 am

Re: Unable to set Property Value On Click Of Button

Thank you!! I had read through the article but I had misunderstood the implementation and never even tried to re-read or try playing around with that. Thank you for your time!
Liviu
Posts: 1325
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Unable to set Property Value On Click Of Button

You're welcome, Aswin!

Glad I could help! :D

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”