get textbox elements of HTML-Container in RPG

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
DavidBal
Profound User
Posts: 24
Joined: Fri Apr 13, 2018 4:06 am
First Name: David
Last Name: Baltromei
Company Name: H. Gautzsch Firmengruppe
Country: Germany
Contact:

get textbox elements of HTML-Container in RPG

Post 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 767 times
error.PNG
error.PNG (329.35 KiB) Viewed 767 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
TaskForce_Kerim
New User
Posts: 16
Joined: Mon Jul 02, 2018 7:56 am
First Name: Kerim
Last Name: Güney
Company Name: Task Force IT-Consulting GmbH
City: Dortmund
Zip / Postal Code: 44369
Country: Germany
Contact:

Re: get textbox elements of HTML-Container in RPG

Post 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.
DavidBal
Profound User
Posts: 24
Joined: Fri Apr 13, 2018 4:06 am
First Name: David
Last Name: Baltromei
Company Name: H. Gautzsch Firmengruppe
Country: Germany
Contact:

Re: get textbox elements of HTML-Container in RPG

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests