It is currently 21 April 2025, 18:26 Advanced search

Input Box

Questions and answers on how to best use Instant Developer

Input Box

Postby Gaby_h » 3 June 2014, 20:33

By default the input box shows an empty input control as shown in the pic. Is there a way to load the inputbox with value from a field to allow the user to modify it. In Javascript, this is standard basic feature.
Attachments
inputbox.JPG
inputbox.JPG (23.7 KiB) Viewed 5353 times
Gaby_h
 
Posts: 888
Joined: 17 July 2013, 18:22
Location: Vancouver, Canada

Re: Input Box

Postby g.lanzi » 6 June 2014, 13:24

At today you cannot do that with the standard libraries, but that can be an interesting feature.

You can get this result by customizing the MessageBox.prototype.Realize javascript function. For example you can assume that using a "Message@@default value" string has to be shown as "Message" with a "default value" in the input value as a watermark.
Giuseppe Lanzi
Director of Support services
Pro Gamma S.p.A.
User avatar
g.lanzi
Pro Gamma
Pro Gamma
 
Posts: 3503
Joined: 29 September 2010, 10:24
Location: Bologna

Re: Input Box

Postby g.lanzi » 6 June 2014, 13:25

I inserted the task NPQ01800 to keep track of this thread.
Giuseppe Lanzi
Director of Support services
Pro Gamma S.p.A.
User avatar
g.lanzi
Pro Gamma
Pro Gamma
 
Posts: 3503
Joined: 29 September 2010, 10:24
Location: Bologna

Re: Input Box

Postby g.lanzi » 6 June 2014, 13:46

Giuseppe Lanzi
Director of Support services
Pro Gamma S.p.A.
User avatar
g.lanzi
Pro Gamma
Pro Gamma
 
Posts: 3503
Joined: 29 September 2010, 10:24
Location: Bologna

Re: Input Box

Postby Gaby_h » 6 June 2014, 15:03

Thanks Giuseppe for pointing to one of my own thread; totally forgot about that one. I'll work on it this WeekEnd and report back.

Followup: Luca's solution works great. Don't know why it slipped my mind, probably was too new to Inde to digest it. Thank you Luca and Giuseppe.
Gaby_h
 
Posts: 888
Joined: 17 July 2013, 18:22
Location: Vancouver, Canada

Re: Input Box

Postby g.lanzi » 27 July 2022, 12:28

L'attività NPQ01800 è stata completata e sarà disponibile nella versione Instant Developer 22.5. Clicca qui per leggere le note di rilascio.
Giuseppe Lanzi
Director of Support services
Pro Gamma S.p.A.
User avatar
g.lanzi
Pro Gamma
Pro Gamma
 
Posts: 3503
Joined: 29 September 2010, 10:24
Location: Bologna


Return to Tips & Tricks

Who is online

Users browsing this forum: No registered users and 10 guests

cron