 |
Experts on Demand
I would like to code a smart icon using @Formula that would accept an item name as an input and then delete that item from the selected document. This is the code I am using:
REM {Prompt for which item needs to be removed.};
@DoWhile(
delField := @Prompt( [OkCancelEdit] ; @DbTitle + " - " + @ViewTitle ; "Enter the name of the item you wish to remove."; "" ) ;
delField = "" );
FIELD delField := @Unavailable;
On running the code, I realized that instead of deleting the item that is keyed in by the user and stored in the variable "delField", the code is actually trying to delete an item named "delField", which it does not find and hence the code does not work as intended. This can be easily achieved using LotusScript. Is there an easy way to do this in @Formula Language?
QUESTION POSED ON: 24 FEB 2005
QUESTION ANSWERED BY: Andre Guirard
This code works for me in ND6:
fieldName := @Prompt([OkCancelEditCombo]; "Field Name"; "Enter Field Name."; ""; @DocFields);
@If(fieldName = ""; ""; @SetField(fieldName ; @Unavailable))
However, I'm afraid it might not work in R5. If it doesn't, there's not a way to do what you are asking.
|
 |
|
|
 |
 |
 |
 |
| TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of . |
|
| |
All Rights Reserved, , TechTarget |
|
|
|
|
|