Learn about Redwood and be one of the first to join the conversation

Visit Redwood Community
Temporary Variables in Calc Script — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Temporary Variables in Calc Script

Accepted answer
11
Views
7
Comments
edited Dec 6, 2021 2:33PM in Planning 7 comments

Summary:

Are there any tricks for storing strings in temporary variables in PBCS? I'm trying to find a way to use a dynamic script instead of repeating similar code.

Content (required):

I have a requirement to split certain dollars into several different accounts, and the code is primarily the same except the suffix.

For example, I have the following accounts:

Direct (g123456 a1)

Direct (g654321 a2)

This results in two different lines of code because of the suffix:

@member(@concatenate(@concatenate("Direct (g", @hspnumtostring(laborAccount)), " a1)"))

@member(@concatenate(@concatenate("Direct (g", @hspnumtostring(laborAccount)), " a2)"))

I have not been able to find a way to create a temporary variable to pass the suffix into my code and then call a script.

Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!