watsonx.ai

 View Only
  • 1.  SPSS Modeler stream/session parameter prompt property get/set methods

    Posted Thu February 11, 2021 12:17 PM
    Hi all,
    Can the parameter's 
    prompt property be toggled via a python script, in SPSS Modeler 18.2.2?

    I cannot find the parameter prompt property getter/setter methods in the ModelerScriptingAutomation.pdf nor in the ModelerScriptingAPIReference.pdf  documentation.Any help will be greatly appreciated.


    ------------------------------
    Johan Peralta
    ------------------------------

    #SPSSModeler


  • 2.  RE: SPSS Modeler stream/session parameter prompt property get/set methods

    Posted Fri February 12, 2021 09:36 AM

    Hi Johan,

    I would bet that's a keyed property value for the parameter helper object or the parameter definition.  I've tried quite a few things to capture the status of the prompt without success.  If I find something, I'll post it here.  I've been hacking around with dir() on the parameter related objects hoping some undocumented method would appear, but so far, nothing.

    ------------------------------
    DAVID WEST
    ------------------------------



  • 3.  RE: SPSS Modeler stream/session parameter prompt property get/set methods

    Posted Fri February 12, 2021 09:40 AM

    I don't have time to test this this morning, but here's a thought:  What is the default setting for a newly created parameter?  If the default is not to prompt, you could write your script so that it captures the existing parameters, deletes them, then recreates them.  A bit of a work-around, but that might do the trick if the default is no-prompt.

    Also, we might be looking in the wrong place for the prompt True/False.  We assume it is associated with the parameter helper object, but it may be a keyed stream property.



    ------------------------------
    DAVID WEST
    ------------------------------



  • 4.  RE: SPSS Modeler stream/session parameter prompt property get/set methods

    Posted Fri February 12, 2021 10:58 AM
    Hi David, the default setting for a newly created parameter is not to prompt.

    I am not sure how to implement any of your suggestions without knowing the property name for the parameter prompt.

    Thanks for your reply.

    ------------------------------
    Johan Peralta
    Data Architect
    IBM
    NY
    ------------------------------