Hi,
Can we remove the post button from the Out of the Box FSM Mobile Stock Count Screen? As we don’t want our technician to post the stock Count.
Can we do this with the New custom screen?
Any help would be much appreciated !!!
Hi,
Can we remove the post button from the Out of the Box FSM Mobile Stock Count Screen? As we don’t want our technician to post the stock Count.
Can we do this with the New custom screen?
Any help would be much appreciated !!!
Hi
I am not sure for this screen, but you might be able to do this doing the following:
There are some screens which doesn't allow you to deactivate this type of buttons (i.e. the ‘Next’ and ‘Save’ button in the ‘DebriefCustomerSignature’ screen). In that case an option could be to enhance the client script for the ‘Post’ button. You can then validate if the user is allowed to post and if not, then return a message and return a false result for the validation script to prevent that the ‘Post’ action is executed. It could look like below example.
var value01 = getControlValue('person','user_def1');
if (value01 == 'N') {
alert('You are not allowed to Post.');
return false;
}
else {
return true;
}
Hi
Thanks for your reply,
But in this case when I check the View Items section for StockCountPartList Screen, it's completely Blank, with No Post Button. In that case, how would I call the Client Script to put the Validation?
I believe Post Button is coming from the source code layout file, not from Screen Item. In the Mobile client customization I can remove that Post Button from the code itself, but was looking something from the Mobile designer Side, don't want to touch the code.
Below is Screen Shot for you reference.
You are right. I forgot to mention that you can add some buttons and have validation on those. In this case you could add the Save button, so that the user can Save instead of posting. However then still your Post button will stay visible, since it looks like its really cooked in the code of this particular screen.
Maybe you can try to overide the FSM Client Script ‘STOCKCOUNT_POST_RUN’ with a (Custom) Client Script and add some extra conditions to it. However I do not know if the Mobile is running the same code. I am thinking... probably not.
If that also not helps (or when you in anyway really want to get rid of that button) you should try to build your own custom screen for this usecase.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.