Script to delete rows

5.16K viewsScriptingformula scripting
0

Hello,
I am trying to delete dept Tech and Sub dept C1 from Corp. I wrote the script:
|Department::Dept|.items.each {
if (|Department|.getSelection(it, |Department::Tech|).value.equals(“Tech”)) /*Trying to delete the Tech Dept*/
it.delete()
}
|Department::Dept|.items.each {
if (|Department|.getSelection(it, |Department::Corp|).value.equals(“C1”)) /* Trying to delete the C1 Sub Dept within Corp*/
it.delete()
}
But its giving me an error.  what am I missing?

shrishank Answered question April 1, 2019

Attachments

Test.model
1

Hi,
Try the simplest A-script for the problem solve.

braddo Posted new comment July 20, 2020

Thank you. Simplest A-Scripts works

You are viewing 1 out of 3 answers, click here to view all answers.

Latest Questions

Qloud Losing Formatting 4 Answers | 0 Votes
Meditation on timelines 3 Answers | 0 Votes