This topic is locked

Display of Master Record.

3/12/2009 11:15:28 PM
ASPRunnerPro General questions
C
Carrie author

When viewing child records and displaying the Master record, the custom code is executing. How can one prevent the code from running if the Master List Detail is displaying?
For example:
Master -> Children. All Master records are listed. User clicks a Child Link and the master is displayed at the top then the children. When the master record is displayed at the top I don't want a piece of custom code to execute.
I've tried setting session variables as flags and can't seem to stop it from executing.
Thanks in advance.

J
Jane 3/13/2009

Hi,
what custom code do you mean?

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.

C
Carrie author 3/13/2009

Sorry 'bout that. I am using this code:
Custom Code for a FIELD (InventoryCount) REMOVES CHECKBOX if there are 1 or more items in inventory

if Cint(strValue) > 0 then

record("checkbox_attrs")="disabled"

end if
In this custom code, I can (of course use RS), but then I get an error when displaying the Details for the store (as thier recordset doesnot have an RS("InventoryCount"), so I need to use strValue - also I believe that admin mentioned this in another post for another contributor (i.e. use strValue instead of the recordset).
Anyway, when I list the stores, this works greats (the list display that is). But when I view the detailed record for the store, the code executes for the parent list (at the top of the screen). I don't want it to do so.
Hope this helps to clear it up.
Carrie.