Page 1 of 1

get textbox elements of HTML-Container in RPG

Posted: Tue Feb 05, 2019 6:19 am
by DavidBal
Hi,

we work with Profound Version 6.2.0.
I try to make our new DSPF's more responsive and want to use HTML-Container for displaying textboxes as you can see here:
html.PNG
html.PNG (32.46 KiB) Viewed 770 times
error.PNG
error.PNG (329.35 KiB) Viewed 770 times
To send the changes to my rpg program I also put the textboxes in the DSPF and set the whole container to "display:none". To see the changes I deleted "display:none" in the browser tools.
With some JavaScript the connection between the html container fields and the textbox widgets work very well.

Now, I have problems with the error message, as you can see in the second image.
Is it possible to change the element which is send to your function pui.ValidationTip?
Maybe it is possible to show the error message next to the html field?
If not, do you have another idea how I solve this without static textboxes?

I hope you can help me!

Many thanks,

David

Re: get textbox elements of HTML-Container in RPG

Posted: Tue Feb 12, 2019 5:26 am
by TaskForce_Kerim
Hi David,

how does this make your DSPF more responsive? Can you clarify?

If you want responsive texboxes, wrap them in appropriate containers (like the new "responsive layout" widget) and make sure they resize and reposition according to the viewport. If you want them to look differently, apply custom CSS classes/rules, like so:

Image

You don't need a second set of textboxes.

Re: get textbox elements of HTML-Container in RPG

Posted: Tue Feb 12, 2019 7:04 am
by DavidBal
Hi Kerim,

I started the design process before we got the responsive layout. So I only knew the way to work with the table layout inside the designer which works not very nice and not like I created in the html container.
Also I did not know that we can change the sort of cells of the responsive layout which was a important thing for us.
The reason is that over time every DSPF will be changed and some fields have to be add between existing fields. Before the responsive layout created we had to relocate every single textbox which is not very comfortable.
That was the reason I said "more responsive".

Your answer helps us a lot and make things much more easier for the future!

Thank you,
David