Our vBulletin migration is complete.
Welcome vBulletin users! All content and user information from the Micro Focus Forums (vBulletin) site has been migrated to this site. READ MORE.
Trusted Contributor.. SCSM123 Trusted Contributor..
Trusted Contributor..
234 views

[Online Expert Day] How to replicate Format Control Query functionality in Process Designer

Jump to solution

I am trying to determine how to replicate Format Control Query functionality in Process Designer.  Specifically, I have a format control calculation that sets the language field equal to a value looked up by a query.  How can I accomplish this?

Calculation:  language in $file=nullsub(language in $file4, "en")

Queries: 

Filename = contacts

Query = contact.name=requested.by in $file

 

 

0 Likes
1 Solution

Accepted Solutions
Highlighted
Honored Contributor.. Ivis Honored Contributor..
Honored Contributor..

Re: [Online Expert Day] How to replicate Format Control Query functionality in Process Designer

Jump to solution

Can't you just create an JS RS to fix it? 

I.e 

var c = new SCFile("contacts"); 
var s = "contact.name=\"" + record.contact_name +"\""; 

if (c.doSelect(s) == RC_SUCCESS) {

record.language = c.language; 

}

.. or similar? 

2 Replies
Highlighted
Honored Contributor.. Ivis Honored Contributor..
Honored Contributor..

Re: [Online Expert Day] How to replicate Format Control Query functionality in Process Designer

Jump to solution

Can't you just create an JS RS to fix it? 

I.e 

var c = new SCFile("contacts"); 
var s = "contact.name=\"" + record.contact_name +"\""; 

if (c.doSelect(s) == RC_SUCCESS) {

record.language = c.language; 

}

.. or similar? 

Trusted Contributor.. SCSM123 Trusted Contributor..
Trusted Contributor..

Re: [Online Expert Day] How to replicate Format Control Query functionality in Process Designer

Jump to solution

Yes, that should work.  I just wanted to make sure I was not overlooking a better option. 

Thanks for the input.

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.