NL

Hi

I am working on Scripts and I have pasted the texts that i need.

But I have a condition in my template that If the condition is say "A" then a particular content should be inserted and if "B" then another.

How should i go about doing this? Please suggest.

Do I have to include an "IF" statement in the design view of the script?? If yes then how can it be done

 

 

Regards

Nelson Lobo

by Markus Werner
Posted on Mon, 01/11/2010 - 15:53

Hi Nelson,

I'm sorry but at the moment we don't support "IF"-statements in the design view.

Regards,

Markus

0
by Nelson Lobo Author
Posted on Tue, 01/12/2010 - 08:16

Hello Markus

Yeah i noticed that there is an error statement generated.

Any suggestions how should i go about doing the above scenario?

Will shifting to the code view be a better option?or a macro??

I did some scripting in the design view and then switched to its code view, but I could not find the static part(the description and the texts) in the code. All i could see was constants. Are the static parts of the design view, placed in constants in the Code view??

 

Regards

Nelson Lobo

0
by Markus Werner
Posted on Tue, 01/12/2010 - 08:24

Hi Nelson,

you may shift to the code view, where you can use JavaScript to implement an if statement.

The text itself is stored in the string table, using getString("ID_REPORTDEF_XXX") to access the strings.

Regards,

Markus

0
by Nelson Lobo Author
Posted on Tue, 01/12/2010 - 09:20

Hi markus,

Can some one provide me a sample document of the javascript code for ARIS?

I want to try out my hand in the code view.

 

Regards

Nelson

0
by Markus Werner
Posted on Tue, 01/12/2010 - 11:31

Hi Nelson,

when you have created a report using the design view, select it in the navigation tree and select "edit" - "edit code"  in the main menu. Then you will see the created code of your report. But be aware, if you change something in the code view, it won't be changeable using the design view again.

Regards,

Markus

0
by Nelson Lobo Author
Posted on Sat, 01/16/2010 - 08:42

Thanks Markus. I will try this.

Regards

Nelson

0
by Nelson Lobo Author
Posted on Sun, 01/17/2010 - 09:29

Hi Markus,

I tried inserting small amount of codes here and there, i.e. If loops. But the system always gives me warning that i will loose the design view if i save the file.

How should I progress with this.

I want to use a bit of programming and also not loose the design view. Its that not all of us here are related with programming. So in future they can easily modify the conetnets through design view.

 

BR

Nelson Lobo

 

0
by Markus Werner
Posted on Tue, 01/19/2010 - 08:06

Hi Nelson,

it is not possible to mix programming and creating a report using the design view.

The only little workaround would be, to save the created report as a template, then creating a new report with this template, change the code and use it. If changes are needed, you just create a new report with your template and adjust this, then you have to adapt your changes to the code of the new report.

I'm sorry I can not offer you a better solution here.

Regards,

Markus

 

0
by Nelson Lobo Author
Posted on Wed, 01/20/2010 - 12:07

No Problem Markus. I think this will be fine.  :)

 

Regards

Nelson Lobo

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock