Sage 100

 View Only
  • 1.  v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 06:19
    v2014 Premium. I thought this would be easy but apparently not. I have added udfs and vb script links on the Item maintenance main tab. The udfs and link are also available on the item inquiry main tab. The customer doesn't want these displayed in item inquiry. How can I put udfs and program links on the item maintenance main tab without also adding them to item inquiry?


  • 2.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 08:12
    probably need to create new screens for who the inquiry is without these fields


  • 3.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 08:24
    I'm not sure what you mean. It doesn't matter if it is ###-### or DLH-###. If I add a udf to the Item Inquiry screen the udf displays in item maintenance. If I add the udf to item maintenance it displays in item inquiry. I need to know if there are separate panels available for item inquiry and item maintenance or do they use the same panel.


  • 4.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 08:27
    Can you not script it to condionally display the udf's based on EditState or something similar.


  • 5.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 08:31
    @KennyDaniel That is probably what I will have to do. I was hoping it would be easier than that. It would be nice if there were / are separate panels in custom office. It seems pretty amateur to have to give inquiry users full access to run the links to the custom vb scripts.


  • 6.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 08:49
    It's a double edge sword. If they were seperate, we would need to customize each one and keep them identical every time a change was made.


  • 7.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 09:01
    @Sage100AdvancedScripting The conditional part of the script can be one of these: 1) If oSession.StartProgram = ""IM_ITEMINQUIRY_UI"" Then 2) If oSession.SecurityAccess = 0 Then But you also want to explicitly add Else condition to Show back the link. The event will be either Table Post-Read or UI Panel PostLoad (av on 2015+). Putting it all together it could be something like this: `If oSession.SecurityAccess = 0 Then retVal = oScript.SetUIControl(""BT_LINK_1"", ""HIDE"") 'Use the correct BT_LINK number Else retVal = oScript.SetUIControl(""BT_LINK_1"", ""SHOW"") End If`


  • 8.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 09:05
    Thanks @AlnoorCassim ! @KennyDaniel I would rather have the flexibility and do more work.


  • 9.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 09:08
    Thanks Alnoor, that's what I meant to say but you put it so eloquently :)


  • 10.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-22-2016 13:19
    You may also be able to create a customization group that is different than the ###_### group and accomplish this. I had to do this for Some of the on the fly tasks in customer maintenance where the customer wanted them to see udf's on ship to address in the on the fly window but not in customer maintenance since they only had read access to customer maintenance. Never tried it but it might work


  • 11.  RE: v2014 Premium. I thought this would be easy but ap

    Posted 02-23-2016 08:08
    @AlnoorCassim The script works great. Thank you!