This topic is locked

Readonly field under condition

2/16/2010 5:40:43 AM
ASPRunnerPro General questions
D
danivale author

Hi everybody,

I have a list page with 5 columns, the inline edit makes me update two fields of the five values that are two input text boxes.

I want that one of them must be readonly under a condition. That is:



If SESSION(strTableName & "_mastertable")="TABLE_1" then

the two fields are editable

ElseIf SESSION(strTableName & "_mastertable")="TABLE_2" then

field_2 is readonly

End If



Any help would be appreciate.

Thanks

J
Jane 2/16/2010

Hi,
unfortunately there is no easy way to change field format in the InlineEdit on the fly.

D
danivale author 2/16/2010



Hi,
unfortunately there is no easy way to change field format in the InlineEdit on the fly.


And is it possible to create two list page of the same table chosing for it different fields to be changed in the edit page?

D
danivale author 2/16/2010



And is it possible to create two list page of the same table chosing for them different fields to be changed in the edit page?

Sergey Kornilov admin 2/17/2010

You can do this creating a 'Custom View' for the same table. You can change fields list and edit formats for this Custom View.