ajw93
Posts: 7
|
| Posted: 10/05/2005, 9:45 AM |
|
I have an editable grid (with add rows button) and a path/directory on the same page. I want the user to be able to:
-Add a new row to the editable grid
-navigate through the directory to find her category
-click it and set the new blank row's "categoryid" control to the value she just clicked (using the GET parameter)
The idea is for it to be sort of like a smart lookup without a popup window (we are already in a popup window trying to do this!).
I've got the path working and plugging the value I want into the querystring, but I can't seem to figure out how to set the value of the last row's control. I would prefer to do this WITHOUT javascript, as I don't really understand it, but if I must that is OK, but I will need an example!
Any thoughts?
Thanks!
Amy
|
 |
 |
kevind
Posts: 251
|
| Posted: 10/07/2005, 2:37 PM |
|
if you don't need to have this appear while the user is in the last row (the insert row I assume) just use a custom insert setting for the editable grid and pick up the column's value from the URL source
kd
_________________
thanks
Kevin
======================
CCS 3.2.x / ASP / MS Access /mySQL / PHP / jQuery / jQuery UI / jQuery Mobile
|
 |
 |
ajw93
Posts: 7
|
| Posted: 10/11/2005, 10:26 AM |
|
I don't think I need to do that -- what I need to know is, how do I figure out what the control name is (what row number to use) to fill it in with the GET data? The number of the blank row in the editable grid could be anything (the control name is field_n where n is the blank row number). This sort of describes what I want to do:
Dim j
for j=1 to tblDocCats.PageSize + tblDocCats.EmptyRows
If CCGetParam("Edit_DBCatID","") <> "" Then
tblDocCats.FK_SectionID_j.Value = CCGetParam("Edit_DBCatID","")
End If
next
And what I am trying to do is figure out how I can tell the grid what "J" is and to fill in the control with the corresponding name.
I am willing to get rid of the "addrow" behavior on the editable grid and force the user to do only one insert at a time if necessary.
Thanks for any assistance!
|
 |
 |
ajw93
Posts: 7
|
| Posted: 10/11/2005, 12:48 PM |
|
NEVER MIND! 
The mass of jell-o which is my brain was going about this all wrong....what I have done was have the PARENT window contain an editable grid with NO empty rows, so the user can delete from there....then I've got an "Add Categories" link which opens a child window wherein they use the directory maintenance component to choose a category, and submits it to the appropriate table. This will work perfectly for our purposes. (Much easier than what we have now!)
Thanks folks.
Amy
|
 |
 |
|