Application Studio Rules

Hello Everyone,

I am trying to create an Application Studio Rule to control the UI behavior of a custom tag I added (SentToCM).

The behavior is trivial to express in psuedocode:
if(JobNum.StartsWith(“X2-”))
SentToCM.Enable;
Else
SentToCM.Disable;

Here’s a screenshot of my almost working rule:

But I have run into multiple problems when trying to implement it using the Rules tab of the Application Studio.

  1. I cannot find an ‘else’ statement in the Rules. Not a big deal, I can just invert the logic of the ‘if’ statement…
  2. I cannot find a ‘Not’ operator for the Rules. Not a big deal, I can just set the default behavior of SentToCM and then change that with a rule…
  3. There is no SettingStyle.Enabled that I can find, so I’m unable to have SentToCM be disabled by default and enabled by a rule that says “JobNum StartsWith Value X2-”
  4. There is no ‘DoesNotStartWith’ operator in the Conditions, so I’m unable to have SentToCM be enabled by default and disabled by a rule that says “JobNum DoesNotStartWith Value X2-”
  5. I assume an Event might be able to help here, but trying to create a new Event crashes my browser, so that’s a no-go.
  6. I could create a new field for every job and store it in the database, a SentToCM field, then run a BPM that calculates the result and stores it in that field, then create a rule that reads from that field and disables the UI based on the result, and at this point I’m certain I’ve missed something and there’s an easier way of doing this.

My question for the community:
Is there a way to implement the above psuedocode using the Rules in the Application Studio?

I don’t think you can ,currently, implement what you are asking without using an event.

Thanks for confirming my assumption.

In case anyone else is having a similar issue, I think the reason Events won’t work for my setup is because my company has an on premises setup and doesn’t allow the Epicor server to communicate with the internet.

@Joshua.Maxwell - We (and many here) are on-prem also. Your networking/server person can set up Epicor to allow access via the web browser for the internal network only.

If you use application studio within the Epicor client, it’ll use it’s own built-in web browser too. Not as fast as using Chrome natively, but it still works well.

It shouldn’t crash it. I’d submit a ticket to EpiCare if the crash is repeatable.

Thanks for the help.

I can use the Epicor web browser and Edge and Chrome, but all three crash when accessing:
[DOMAIN]/EpicorERPSSO/Apps/ERP/Home/#/view/Erp.UI.JobEntry/designer/event

I’ll pass the problem on to both my IT team and EpiCare and I’ll let everyone here know if I get the Event page to work.

1 Like

@Joshua.Maxwell We are also on-prem. I am probably wrong but I think you would only need access to your internal network. Every thing needed should be provided by your local Epicor server.

I just opened Job Entry in our 2021.2.8 testing environment in a browser, created a test layer in App Studio, and navigated to the Events sidebar and clicked on the + to create a new event. No crash on my end… Are you still on 10.2.700? Epicor might have that as a known issue, and just tell you to upgrade. You can check the release notes to see if it came up.

Lots of improvements & bug fixes in App Studio over the last 3 major releases.

1 Like