Skip to main content

on FSM 5.7 it shows all the users entered line codes. however only some of them apply to labour while the others do not. 

What would be the best way to hide specific ones from the mobile time reporting screen

Jbernardo,

 

To my knowledge, there are 2 methods to accomplish this.

  1. Update the Sync Rule to only include the Line Codes you want to share out
  2. use a “Populate List from Query” Client Script (sample below) 
    • we use the below script ourselves for the exact same purpose you mentioned.
var lineCode = getControlValue("non_part_usage", "line_code");

var textLines = "select description, line_code from line_code where line_code in ('SHOPTIME', 'TRAINING')";
populateListFromQuery("non_part_usage", "line_code", textLines, false);

if(getCurrentTransactionType() == "UPDATE") {
setControlValue("non_part_usage", "line_code", lineCode);
}

Sincerely,

-Rudy


Jbernardo,

 

To my knowledge, there are 2 methods to accomplish this.

  1. Update the Sync Rule to only include the Line Codes you want to share out
  2. use a “Populate List from Query” Client Script (sample below) 
    • we use the below script ourselves for the exact same purpose you mentioned.
var lineCode = getControlValue("non_part_usage", "line_code");

var textLines = "select description, line_code from line_code where line_code in ('SHOPTIME', 'TRAINING')";
populateListFromQuery("non_part_usage", "line_code", textLines, false);

if(getCurrentTransactionType() == "UPDATE") {
setControlValue("non_part_usage", "line_code", lineCode);
}

Sincerely,

-Rudy

Hi @Rwjgoedhart  - sorry for the delay in response, i didnt see this was answered.

Which sync rule would it be? I see LINE_CODE - but not sure where i would make that change you mentioned.

to be clear, i still want them to be able to select Line Code ‘TT’ for example but i dont want it to show on their time reporting or account to their total labour hours.


Reply