click on subfile row not working

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
UPI
Profound User
Posts: 30
Joined: Wed Jun 30, 2010 1:37 pm
First Name: Thomas
Last Name: Garvey
Company Name: Unbeaten Path International
Country: United States
Contact:

click on subfile row not working

Post by UPI »

I'm trying to use the technique described in the Getting Started guide (on page 43 and 44) to allow the user to click on a subfile row. I can't get it to work.
"You may also choose to use a hidden hyperlink that is triggered when the subfile row itself is
clicked. To accomplish this, add a hyperlink widget to the subfile and bind the response to an
RPG variable as before. Then, right-click the hyperlink in the designer and select Hide from the
context menu, or set the visibility property to hidden. Change the id property of the hyperlink to
something meaningful, like viewLink. Finally, add the following JavaScript line to the onrowclick
event of the grid widget:
id=RowClick
field type = hyperlink
response = RowClick (an indicator)
visibility=hidden
grid property onrowclick=pui.click('RowClick' + row)

The RPG program is getting control when the subfile row is clicked but the RowClick bound field is not being populated with anything (just a blank). How is the RPG program to know when the row was clicked (and not another button or field in the subfile)?

What am I missing?
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: click on subfile row not working

Post by Rob »

There is a period missing here after RowClick

Code: Select all

pui.click('RowClick.' + row)
UPI
Profound User
Posts: 30
Joined: Wed Jun 30, 2010 1:37 pm
First Name: Thomas
Last Name: Garvey
Company Name: Unbeaten Path International
Country: United States
Contact:

Re: click on subfile row not working

Post by UPI »

Thanks for the response. That worked.
Better have someone update the Getting Started Guide. The period isn't in there in the example.
User avatar
Rob
Profound Logic Staff Member
Posts: 135
Joined: Fri Jan 04, 2008 12:12 pm
First Name: Rob
Last Name: Ferguson
Company Name: Profound Logic Software
Contact:

Re: click on subfile row not working

Post by Rob »

Thanks for the feedback. The period is actually in the getting started guide but it is very difficult to see. We will correct this.
UPI
Profound User
Posts: 30
Joined: Wed Jun 30, 2010 1:37 pm
First Name: Thomas
Last Name: Garvey
Company Name: Unbeaten Path International
Country: United States
Contact:

Re: click on subfile row not working

Post by UPI »

I stand corrected. I should have increased the pdf document to 300%. It is there.
Thanks again.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests