Wrong record is read when using single row selection

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Wrong record is read when using single row selection

Post by brianhd71 »

Hi, I'm using single row selection to get the row to remain highlighted after I click on the Blue L button to build the next screen. However, when I click on the button again, the screen doesn't rebuild. It continues to display the same data in the next grid. I have to click it again and then I get the correct data. And, if I click on a different row on the second click, the data from the previous click shows up. The selection works fine if the row selection property is set to none, but then the row does not highlight.
Attachments
Capture.PNG
Capture.PNG (155.86 KiB) Viewed 419 times
json.txt
(53.62 KiB) Downloaded 67 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Wrong record is read when using single row selection

Post by Scott Klement »

Hi Brian,

When you debug this, have you found that your RPG program is receiving the wrong information from the grid? I'm assuming that when you click, the RPG program is given control (via pui.click) and that it's then loading the next screen. Is it getting the proper information? Or the wrong information?

If it's getting the wrong information, is it because it's getting the wrong RRN somehow? Or is it using the proper RRN, but getting the wrong info? Or are you using something like READC? Perhaps your record is no longer 'changed', and therefore you're getting a different record if you're using READC?

Sorry for all the questions... trying to narrow down what might be the problem.
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Re: Wrong record is read when using single row selection

Post by brianhd71 »

I am using a readc, and the rpg program receives the wrong information back from the UI. RRN is wrong too. It only happens when I click on the next item down. If I go up, say from record 6 to 4, the RPG gets the correct information and it displays correct as well. There's a one click lag, but only when I set it to single row selection. I am using javascript onclick to populate a text field L or P + the row. S
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest