In portal setup, is delete row enabled?
What paramter are you passing to this script?
Is the delete button located inside the portal row?
in portal set up i've enabled the check box called "allow deletion of portal records"
not sure what you mean by "parameter"..?
The delete button is located inside the portal row.
Note the first two lines of the script:
Set Variable [ $RowExists; Value:GetValue ( Get ( ScriptParameter ) ; 1 ) ]
Set Variable [ $Label; Value:GetValue ( Get ( ScriptParameter ) ; 2 ) ]
A script parameter must be passed to this script with two values in the list. The first value must be a boolean value (True (1) or False (0) ). The second value is text used in the confirmation custom dialog that asks the user if they really want to delete that portal row. Of that first value is false, the script does nothing. If you do not pass a parameter to the script, the script does nothing.
In the Known Bugs List file where you got this script, go to a layout with a portal, enter layout mode and double click the delete button in the portal row to bring up button setup. Then click the specify button to bring up the dialog where you'll find the optional script parameter box. Then click edit to see the full expression used to create a list of values to be passed to the script. This parameter expression is what is key to having a script that works with any portal in your file and which can be imported error free into any other database file.
it works perfect, just needed to add List ( True; Line Items::fabric_Category ) to the optional script, thank you soo much...
If you can add new records in the portal to Line Items, there's a better option than using True as the first list value. Then you can use conditional formatting to make the delete button invisibile or look "disabled" on the bottom "add row" of the portal.