Comments on: When using MXServer for fetching MboSet https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/ Concepts Simplified. Tue, 17 Aug 2021 17:57:14 +0000 hourly 1 https://wordpress.org/?v=6.5.2 By: Kamadeba https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-95 Tue, 17 Aug 2021 17:57:14 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-95 good posts

]]>
By: PK https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-94 Thu, 05 Aug 2021 10:31:14 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-94 In reply to Andrii Batyrenko.

That is correct.

]]>
By: PK https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-93 Thu, 05 Aug 2021 10:30:49 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-93 In reply to Andrii Batyrenko.

That is correct, the moveFirst() or getMbo(i) will do the job of fetching the set for the first time. reset() is required to re-fetch the set if it’s whereclause is changed.

]]>
By: Elliot Pollard https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-92 Thu, 05 Aug 2021 08:55:50 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-92 Nice one, Pranjal!

]]>
By: Andrii Batyrenko https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-91 Wed, 30 Dec 2020 23:47:48 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-91 There is no need to do assetSet.reset(); if you do assetSet.setWhere(“some condition”); first time.
Only do assetSet.reset(); if you update setWhere condition and want to refetch the data.

]]>
By: Andrii Batyrenko https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-90 Wed, 30 Dec 2020 23:45:27 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-90 assetSet.clear(); and assetSet.close(); only for persistent mbo
for non-persistent only assetSet.clear();
is it right?

]]>
By: Sanjay https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-89 Wed, 08 Apr 2020 19:50:49 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-89 Thank You for the updates.
That is what I am trying to avoid.
I was trying to find if there is any reason why print and service.log doesn’t work. Because Automation scripting framework by default support it. So is there anything special we have do when we write script on USER exist ?

If nothing works out then I have to go for what you mentioned. But I was trying to maintain uniformity across all my scripts.

]]>
By: PK https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-88 Wed, 08 Apr 2020 19:03:19 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-88 In reply to Sanjay.

Define a logger in the automation script and use it to write to the SystemOut.log.

from psdi.util.logging import MXLoggerFactory
logger = MXLoggerFactory.getLogger(“maximo.autoscript.xyzscript”)

logger.info(“>>>code execution started<<<“)
logger.debug(“WONUM: ” + mbo.getString(“WONUM”))

Make sure that you set up the logger (maximo.autoscript.xyzscript in this example) in the logging application and set the appropriate logging level on it.

]]>
By: Sanjay https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-87 Wed, 08 Apr 2020 18:28:58 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-87 In Integration User Exist Automation scripts(java Script), how do we get logging ? print doesn’t work and even service.log is not.

]]>
By: PK https://maximoconcepts.com/2015/11/26/when-using-mxserver-for-fetching-mboset/#comment-86 Fri, 13 Oct 2017 09:36:38 +0000 https://maximoconcepts.wordpress.com/?p=203#comment-86 In reply to slim Al..

Sorry I missed this.

Correction you need to do –
MboRemoteSet assetSet = parentMbo.getMboSet(“$RELATIONShipname”; “ASSET”; “1=2”);

and yes if you do this, you don’t have to call save explicitly. When the parent would be saves this will also get saved.

]]>