i'm having a duplicate item every time i edit & save a certain item i want to edit only & save the edit item not to duplicate.thanks in advance
Code: Select all
on mouseUp
put fld "DateField" &TAB& the label of btn "ReasonMenu" &TAB& fld BadgeIDField &TAB& fld FullNameField &TAB& fld AssetTagField into tNewInputData
## Check if datagrid already has content:
put the dgtext of grp "DataGridLaptopList"of cd "RLMS-cd1" of stack "RLMS" into tOldData
## New and first entry:
if tOldData = EMPTY then
put tNewInputData into tOldData
else
// ## We ADD the data
put cr & tNewInputData after tOldData
end if
// ## Now set the new data:
// when i removed this script it won't duplicate but it will delete all other items.
set the dgtext of grp "DataGridLaptopList" of cd "RLMS-cd1" of stack "RLMS" to tOldData
end mouseUp