Set selection based on clicking image in grid

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
kmiles@misd.net
New User
Posts: 15
Joined: Tue Aug 21, 2018 8:14 am
First Name: Keith
Last Name: Miles
Company Name: Macomb ISD
Phone: 5862283375
Address 1: 38177 LITTLE MACK AVE
City: CLINTON TWP
State / Province: Michigan
Zip / Postal Code: 48036
Country: United States
Contact:

Set selection based on clicking image in grid

Post by kmiles@misd.net »

Is there a way that a combo box choice value (column 0) in a grid can be set and processed based on clicking image in another column (2) in the grid?
Attachments
~$ there a way that a combo box choice value.docx
(162 Bytes) Downloaded 302 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: Set selection based on clicking image in grid

Post by Scott Klement »

The Word document that you attached doesn't work for me.
kmiles@misd.net
New User
Posts: 15
Joined: Tue Aug 21, 2018 8:14 am
First Name: Keith
Last Name: Miles
Company Name: Macomb ISD
Phone: 5862283375
Address 1: 38177 LITTLE MACK AVE
City: CLINTON TWP
State / Province: Michigan
Zip / Postal Code: 48036
Country: United States
Contact:

Re: Set selection based on clicking image in grid

Post by kmiles@misd.net »

Here it as pdf . You should be able to view now.
Attachments
Is there a way that a combo box choice value.pdf
(221.23 KiB) Downloaded 294 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: Set selection based on clicking image in grid

Post by Scott Klement »

To save other people a little bit of time/effort... the only thing in the PDF is the following image:
combopicture.png
combopicture.png (118.96 KiB) Viewed 1225 times
The only other thing in the PDF is the text "Is there a way that a combo box choice value (column 0) in a grid can be set and processed based on clicking image in another column (2) in the grid?" (same thing he asked above)
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: Set selection based on clicking image in grid

Post by Scott Klement »

If I understand correctly, you want to click the "exclamation" icon, and have it fill in the contents of the combo box, then submit this to the server? Is that correct?

Or are you looking to change which options the user can select from in the combo box?
kmiles@misd.net
New User
Posts: 15
Joined: Tue Aug 21, 2018 8:14 am
First Name: Keith
Last Name: Miles
Company Name: Macomb ISD
Phone: 5862283375
Address 1: 38177 LITTLE MACK AVE
City: CLINTON TWP
State / Province: Michigan
Zip / Postal Code: 48036
Country: United States
Contact:

Re: Set selection based on clicking image in grid

Post by kmiles@misd.net »

Sorry for confusion. The Description column has has 2 Icons in it one icon indicates there is a extended description for the line item and the second icon indicates no extended description. If the user selects a "D" in the selection combo box the program currently shows/edits the extended description.

I would like to change the program so that is the user clicks on the icon it would auto advance the "D" selection in the combo box.
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: Set selection based on clicking image in grid

Post by Scott Klement »

Have you tried doing something like this in the image's "onclick" property?

Code: Select all

pui.set("mycombo." + row, "D");
pui.click();
Replace "mycombo" with the id property of your combo box. Because it's in a grid, you must add a period followed by the row number. So if your ID is X, you'd have X.1 for row 1, X.2 for row 2, etc. There's a variable named "row" that contains the current row number, so in the above code I have "mycombo." + row, which will work if the id is "mycombo".

Have you tried this already?
kmiles@misd.net
New User
Posts: 15
Joined: Tue Aug 21, 2018 8:14 am
First Name: Keith
Last Name: Miles
Company Name: Macomb ISD
Phone: 5862283375
Address 1: 38177 LITTLE MACK AVE
City: CLINTON TWP
State / Province: Michigan
Zip / Postal Code: 48036
Country: United States
Contact:

Re: Set selection based on clicking image in grid

Post by kmiles@misd.net »

Thanks Scott that works perfectly.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests