Set selection based on clicking image in grid
-
- 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
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 301 times
-
- 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
The Word document that you attached doesn't work for me.
-
- 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
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
-
- 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
To save other people a little bit of time/effort... the only thing in the PDF is the following image:
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)-
- 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
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?
Or are you looking to change which options the user can select from in the combo box?
-
- 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
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.
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.
-
- 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
Have you tried doing something like this in the image's "onclick" property?
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?
Code: Select all
pui.set("mycombo." + row, "D");
pui.click();
Have you tried this already?
-
- 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
Thanks Scott that works perfectly.
Who is online
Users browsing this forum: No registered users and 0 guests