A return value of the API. DataWindow.Utilities.mShellAndWait

I would like to use the API. DataWindow.Utilities.mShellAndWait in an event script FDM, to run a batch script that should echo to certain values that I need. For example:

Dim strParams
strParams = API. DataWindow.Utilities.mShellAndWait \ < servername > \Folder1\Folder2\Params.bat",0 «»

However, I get the following error:

Error:
Error: Expected end of statement Script = BefLoad

If I have this line in the comments the error message disappears. Can anyone please point out my error and suggest how I can achieve this? Thanks in advance.

mShellandWait is one of these elements of FDM API that I don't like not necessarily see the value since it most likely just repackaging of existing features of the OS even when...

I would just use Wscript to achieve this.

Const WshFinished = 1
Const WshFailed = 2
strCommand = "\\\Folder1\Folder2\Params.bat"   

Set WshShell = CreateObject("WScript.Shell")
Set WshShellExec = WshShell.Exec(strCommand) 

Select Case WshShellExec.Status
      Case WshFinished
               strOutput = WshShellExec.StdOut.ReadAll
      Case WshFailed
               strOutput = WshShellExec.StdErr.ReadAll
End Select 

'Display output
If LCase(API.DataWindow.Connection.PstrClientType) = "workbench" Then
     MsgBox strOutput
Else
     'Let the user know we are done
     RES.PlngActionType = 2
     RES.PstrActionValue = strOutput

End If

Tags: Business Intelligence

Similar Questions

  • Cannot use the variable of environment with the API. DataWindow.Utilities.mShellAndWait

    When you run the following command in an event FDM script, an error occurs. If I specify the direct path (i.e. "D:\Oracle\Middleware\EPMSystem11R1\products\Essbase\EssbaseClient\bin\startMAXL.cmd") the error does not occur. But if I open the command prompt and enter the path by using the environment variable (as in the script below), the MaxL script runs fine. It seems that causes an error when executed by API. . DataWindow.Utilities.mShellAndWait's - someone please have any suggestions as to how I can fix this?


    Error:
    Error: File not found
    Online: 77


    Script:
    «Call MaxL script to perform data clear the calculation.»
    Set objShell = CreateObject ("WScript.Shell")
    strCMD = "%EPM_ORACLE_HOME%\products\Essbase\EssbaseClient\bin\startMAXL.cmd" & strFilePath & ".mxl.
    API. DataWindow.Utilities.mShellAndWait strCMD, 0

    I don't think that vbScript will solve strCMD = "%EPM_ORACLE_HOME%\products\Essbase\EssbaseClient\bin\startMAXL.cmd" & strFilePath & ".mxl" correctly. I think that the environment variables can be solved in the interface. FDM is probably literally including the string "% EPM_ORACLE_HOME" in the path.

    If you share (read and execute) the file on the Essbase server that contains startMAXL.cmd (or containing a record of the ancestor of this folder), you can use the UNC path: strCMD = "------------"& strFilePath & ".mxl"»

    However, if startMAXL is installed on the server, FDM, you can use the local path to startMAXL.cmd.

  • How to get the return value of the activity of the method in the stubborn workflow

    Hi all

    I use Jdeveloper 11 g R2 (11.1.2.3) & Weblogic 10.3.5.0

    I have a stubborn workflow, default activity is a call method than calling a method in the app module
    This method returns an id

    I need this code in my project to do something else
    Is there a way I can access the return value of the method call activity?

    Concerning
    Mohsen

    Set the value of return as #{{pageFlowScope.myBean.returnValue} pageFlowScope.myBean.returnValue} in the method, call the property inspector and get the value in your managed bean.

    String returnParam = (String) JSFUtil.getFromPageFlow ("returnValue");

  • How return values when the page of the ofa procedure call

    Hello

    I need to return multiple values in the OPS page calling procedure.i using below code.bt I'm able to return a single value. Please suggest me how to return multiple values.

    Co:

    -----

    If (pageContext.getParameter ("Calc")! = null) {}

    Vo1 OAViewObject = (OAViewObject) am.findViewObject ("AddonBillingVO");

    System.out.println ("VO");

    {if(VO1!=null)}

    CNT int = vo1.getRowCount ();

    System.out.println ("count:" + cnt);

    If (cnt > 0)

    {

    RowSetIterator rs = vo1.createRowSetIterator("empIterator");

    System.out.println ("EMP");

    If (rs! = null)

    {

    While (rs.hasNext ())

    {

    AddonBillingVORowImpl line = rs.next ((AddonBillingVORowImpl));

    System.out.println ("impl");

    If (line! = null)

    {

    String laseid = row.getAttribute("LeaseId").toString ();

    System.out.println (laseid);

    String billingid = row.getAttribute("AddonBillingId").toString ();

    System.out.println (billingid);

    [Serializable] param = {}

    laseid, billingid

    };

    String newupc = (String) am.invokeMethod ("callPLSQLProc", param);

    System.out.println (newupc);

    String myValue = newupc;

    OAMessageTextInputBean textBean = (OAMessageTextInputBean) webBean.findChildRecursive ("prorate");

    textBean.setValue (pageContext, myValue);

    }

    }

    AM:

    --------

    public String callPLSQLProc (String laseid, String billingid)

    {

    OracleCallableStatement callableStatement = null;

    Try

    {

    String callProc = "BEGIN LEASE_PRORATE_PKG. LEASE_PRORATE_PROC1 ' + '.

    "(p_lease_id = >: 1,» +)"

    ' p_billing_id = >: 2 +,

    "(p_prorate = >: 3) +;

    'END;';

    callableStatement (OracleCallableStatement) = getOADBTransaction ().createCallableStatement(callProc,1);

    callableStatement.setInt (1, Integer.parseInt (laseid));

    System.out.println (laseid);

    callableStatement.setInt (2, Integer.parseInt (billingid));

    System.out.println (billingid);

    callableStatement.registerOutParameter(3,OracleTypes.VARCHAR,255);

    callableStatement.execute ();

    String resultMessage = (String) callableStatement.getString (3);

    System.out.println (resultMessage);

    Return resultMessage;

    }

    catch (System.Exception e)

    {

    e.printStackTrace ();

    System.out.println ("execepn");

    throw new OAException (try (), OAException.ERROR);

    }

    printscreen.PNG

    Khalil.

    Hello

    You are the PL/SQL procedure in a loop on the right? Just assign the value to the attribute appropirate.

    if (pageContext.getParameter("Calc")!=null)  {
      OAViewObject vo1 = (OAViewObject)am.findViewObject("AddonBillingVO");
      System.out.println("vo");
      if(vo1!=null) {
      int cnt = vo1.getRowCount();
      System.out.println("count :" + cnt);
      if (cnt > 0){
      RowSetIterator rs = vo1.createRowSetIterator("empIterator");
      System.out.println("emp");
      if (rs != null){
      while (rs.hasNext()){
      AddonBillingVORowImpl row = (AddonBillingVORowImpl) rs.next();
      System.out.println("impl");
      if (row != null){
      String laseid = row.getAttribute("LeaseId").toString();
      System.out.println(laseid);
      String billingid=      row.getAttribute("AddonBillingId").toString();
      System.out.println(billingid);
      Serializable[] param = { laseid,billingid };
      String newupc = (String) am.invokeMethod("callPLSQLProc",param);
      System.out.println(newupc);
      //String myValue = newupc ;
      //OAMessageTextInputBean textBean = (OAMessageTextInputBean)webBean.findChildRecursive("prorate");
      //textBean.setValue(pageContext, myValue);
      row.setAttribute("Prorate",newupc);
      }
      }
      }
      }
      }
    }
    

    Check the last lines. If the attribute name is nothing else than "Pro rata", updated accordingly.

    See you soon

    AJ

  • How to return values from the record following instead of in the same record in LOV

    Hi all

    I use Forms 10 G.

    I have a block of details. In what in the 3rd column, I have a LOV.

    My requirement is let say I asked for it from the 1st and 2nd column, and it shows 1 record.

    After that if I pressed F9, then it should display the LOV list and, when I select a value any then it will create a new record with the same value of 1st and 2nd column.

    Example: -.

    Agenda provider country
    123ABCIndia

    We here in the column 'Country' LOV. Then when I pressed F9 then Lov should be displayed.

    as below.

    List of countries
    India
    U.S..
    Japan

    It works very well so far.

    Now if I select from the USA in the list then it should create a new record with the values of 1st and 2nd column.

    Agenda provider country
    123ABCIndia
    123ABCJapan

    How can I do this?

    Besically I need, rather than return the value in the same record, he must return to the next with the exsiting values record.

    The algorithm is:

    -use the KEY-LISTVAL about to 'COUNTRIES '.

    -LOV execution using builtin show_lov

    -store the return value Lov any parameter or a local variable in your trigger code ( vL_dummy_Deger varchar2 (100); )

    -Create registration

    -assign value to any new item you want to

    code like this:

    declare

    vLDummy boolean;

    vL_dummy_Deger varchar2 (100);

    Start

    -lov runs lov ruturns value is assigned to all the dummy elements to store Lov, return value. (no need to display)

    "-" DUMMY "point lets store lov, return value.

    vLDummy: = show_lov ('LOV_ULKE');

    --

    vL_dummy_Deger: =: model;

    create_record;

    : new_item: = vL_dummy_Deger;

    end;

  • How to set the return value of the method to the /outputText inputText field

    Hello

    How to set output return value method of a /outputText adf inputText field

    Concerning

    sevanan

    Well put method's return value to a managed bean variable.

    Create a variable in the bean and set the return value to this variable.

    the inputText and outputTextValue to this managedBean.variable value

    That's all...

    and add partial trigger for inputText programmaticly

  • How to get local values using the API of Java OLAP?

    http://download.Oracle.com/docs/CD/E14072_01/OLAP.112/e10794/overview-summary.html#Vals

    The third part of a unique value is the local value. In the previous example, the local value is CY2001, which is the identifier for the year 2001 in the overall scheme. Java Oracle OLAP API has the classes and methods that you can use to get the local values of dimension members. See the descriptions of the classes MdmPrimaryDimension and MdmDimensionMemberInfo for more information on the unique values and the.

    How to get local values for a dimension or hierarchy or a level using Java OLAP API?

    I can not find how...

    For example, I would like to get the list of members for each level (in my application: countries, States, cities)

    Thanks in advance,
    JP

    The following code assumes that you have an object MdmPrimaryDimension, dimension and a sense of routine, dumpCursor(), that takes an oracle.olapi.data.Source object.

    Find the objects of metadata
    Hierarchy of MdmLevelHierarchy = dimension.getDefaultHierarchy ((MdmLevelHierarchy));
    MdmAttribute localValue = dimension.getLocalValueAttribute ();
    The list of levels of = hierarchy.getLevels ();

    Print the members of each level
    for (MdmHierarchyLevel level: levels)
    {
    System.out.println ("Level" + level.getName ());
    System.out.println ();
    Source querySource = localValue.getSource () .joinHidden (level.getSource ());
    dumpCursor (querySource);
    }

    In general, it is more common to want to print descriptions of members. For this, you can replace

    MdmAttribute localValue = dimension.getLocalValueAttribute ();

    with

    MdmAttribute valueDesc = dimension.getValueDescriptionAttribute ();

    How would you say

    Source querySource = valueDesc.getSource () .joinHidden (level.getSource ());

    For the "description" and "local value".

    Source querySource = localValue.getSource () .join (valueDesc.getSource ()) .joinHidden (level.getSource ());

  • display and return value to the selection list.

    Jin

    I want to display the value in the list of selection from this quary.

    Select student_id in the class_record where class_id =: p1_class_id and SECTION =: p1_section
    less
    Select student_id in the STUDENT_TYPE_DETAILS where class_id =: p1_class_id and SECTION =: p1_section;

    but I want what and name with student_id l_name store in the s_per_det.student table and .f_name is also in this table.


    How to define the display value and return in this quary value using 3rd table s_per_det.


    How can I do that.


    Thank you
    Maury

    Ooh, NEGATIVE... Can you not use a NOT EXISTS in this case, could have a significant impact on the execution plan?

    Something like this maybe?

    SELECT f_name||' '||l_name,
           stundent_id
    FROM class_record a,
         s_per_det b
    WHERE a.student_id = b.student_id
    AND   a.class_id   = :P1_CLASS_ID
    AND   a.section    = :P1_SECTION
    AND   NOT EXISTS(SELECT 'X'
                     FROM student_type_details c
                     WHERE a.student_id = c.student_id
                     AND   c.class_id = :P1_CLASS_ID
                     AND   c.section = :P1_SECTION)
    

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • How to get the return value of the method by calling the stored procedure in ApplModuleImpl

    Hello

    I use Jdev 10.1.3.4
    JSF, and ADF business components
    I created a service method in the implementing class of module request to execute the strored procedure in the database.
    This breeding returns a string value.
    now, I slipped the method of service of data control palette on my JSF page and chose ADF parameter form when I droped.
    It works very well.
    now, I want to display the string returned by the method of service after the execution on the JSF page as global messages.
    How can I achieve this.
    Help, please

    Thanks in advance

    Kind regards
    Ajit Agarwal

    Hello

    You must run programmatically run the method binding. If I'm not wrong then the following code will allow you to access the return value

    OperationBinding oper = bindings.get("MyPLSQLAccessMethodBinding") (OperationBinding);
    String returnValue = oper.execute ((String));

    Once you have the string in a managed bean you can add it to the stack of messages JSF exposed by the FacesContext

    Frank

  • Retruning lines which have the same return value from the function RANK

    Hi, I want to achieve is to use a DENSE RANK function to identify the same value of the data, if the rank values are same then extra. Here is the code
    WITH CTE AS
    (
    SELECT SalesPersonID,
    SalesQuota,
    DENSE_RANK() OVER (ORDER BY SalesQuota DESC) as DENSE_RANK
    FROM Sales.SalesPersonQuotaHistory
    WHERE SalesQuota BETWEEN 266000.00 AND 319000.00
    )
    This retrun
    SalesPersonID SalesQuota DENSE_RANK
    280 319000.00 1
    287 304000.00 2
    280 301000.00 3
    282 288000.00 4
    283 284000.00 5
    287 281000.00 6
    278 280000.00 7
    283 280000.00 7
    283 267000.00 8
    278 266000.00 9
    How I choose the rank value that are of the same value?

    The result should be
    278 280000.00 7
    283 280000.00 7
    with cte as
    (
     select salespersonid,
         salesquota,
         dense_rank() over (order by salesquota desc) as dr
       from sales.salespersonquotahistory
      where salesquota between 266000.00 and 319000.00
    )
    select *
      from (
         select cte.*, count(*) over(partition by dr) ct
           from cte
           )
     where ct > 1
    
  • SQL - select Help - box When? Return value of the second Table?

    -Next to people on this forum I am probably somewhere between a beginner and an intermediate SQL user.

    Ive been using a case when stated in plsql to find "all who has status in any program was canceled during a specific time, but have become or are still active in another program"

    So, Im actually trying to return a value from another table in a case where, but this isn't anthing taste other than a text declared as 'Yes' or 'no '.

    This is the select statement - y at - it another way to do it where I can get the results I need?

    -case when pp.party_id in (select pp1.party_id - cancelled active clients in another program)

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'Act')

    So 'Yes' is still 'No' end as Active_in_Other_Prg

    So - instead of 'Yes', I want essentially the program they are active or pp1.program_id, another null

    It is possible that the client can be active in more than one program as well.

    Any help is greatly appreciated, I explored with if and decodes but I can't get anything to work.

    Ben

    Looks like an outer join. See doc ora: joins at

    Select p

    q.party_id

    q.program_id

    of table_with_party_id p

    , (select pp1.party_id - cancelled active clients in another program)

    pp1.program_id

    of asa.program_participation pp1,.

    ASA.curr_prog_participation_status cpps1

    where pp1.program_participation_id = cpps1.program_participation_id

    and pp1.party_id = pp.party_id

    and cpps1.code_value = 'ACT') q

    where p.party_id = q.party_id (+)

    Note: In the example above shoudn't it be a space between the (and +), but the forum software automatically converts to

    The outer join will connect display all records in the table p and q records only if fits the party_id, IE q.party_id and q.program_id will be null if there is no match.

    Edit: adding program_id

  • Page calculation not return value to the page

    I'm trying to get a calculation of page to work in the rendering phase...
    I've implemented the calculation according to the region, and I want it to run whenever someone adds a detail line on the form. This is a query that returns a single value:

    Select nvl (sum (inv_det_amount), 0) in the invoice_details where inv_id =: P320_INV_ID;

    The query works fine under workshop/SQL SQL commands, but does not occur on the page.

    I have the page element declared as 'source' to a column of data.
    What might be missing?

    The Page element contains the correct calculation, but it is not displayed on the screen.

    Published by: V Rickert on May 15, 2013 15:39

    Hello

    >
    I have the page element declared as 'source' to a column of data.
    >

    What is a parameter for Source used?

    If it's still, by replacing the value that exists in the session state, then that could explain it.

    This means first of all, you do your calculation or procesess, and after that to read data in the element.
    And gets what you read database element.

    Kind regards
    Aljaz

  • Masking of series that is null or 0 return values in the graphics in flash

    Hello

    I'm creating a bar chart stacked with several (about 15-20 series) series and some of the series return null/0 values, but they are always displayed on the table... It is not visually appealing because several series of null in a stacked chart values overlap between them... is there a way I can add a condition somewhere to hide these series that return null/0 values and not display them on the graph?

    Any ideas?

    Thanks for your help!

    Would check you closely because I thought showed no null values? Values null are not displayed. I found this useful once.
    But in general it is visually unexpected when you, for example, a histogram 3D height zero bar. If you were made by hand, you leave a free space but omit the bar all together. I doubt that this can be done in a chart.

    They had to choose an interpretation. Zero average disappear or does it mean a zero graphic? I think that trace of zeros and nulls don't--what value would they draw?

    If actually nulls are not displayed, you can preprocess the data changing zeros to nulls before plotting. But be aware that the entire column will probably disappear if all data for a label entries are zero. I'm sure that's what I lived. Fine if you want to.

    In fact, I had several sets of data to draw: OC, given OO dat, data WR (3 sites, 4 points given per day) who well sort and I added a (0, null, null, null,) as a spacer between the columns of data.

    Maybe someone knows something that can help.

    Kind regards
    Howard

  • How to do a function with the same argument multiple times and return values in the variables?

    The problem I have is that I have created a function that is really kind of database.  Basically, a bunch of:

    If (a.value == 'number') {}

    b.value = "this expression."

    }

    Inside of the shape are 2 drop-down lists that return numeric values I want to process through this function and the value of return inside separate variables.

    var a = this.getField ("OPE003. EVEN.1.MIP");

    MIP (a);

    var Result1 = Mip();

    I tried to smash * a * to treat the second field

    a = this.getField ("OPE003. EVEN.2.MIP");

    MIP (a);

    var Result2 = Mip();

    Result1 and result2 are placed in an array, joined as a string.

    In doing so, I always get the last treatment twice more than the final result.

    Can I use a function as a batch processor that way?

    You're right, I changed the code to what you said, but how to pass another value by my function so I can get Result1 and Result2?

    is it

    var a = this.getField ("OPE003. EVEN.1.MIP");

    var b = this.getField ("OPE003. EVEN.2.MIP");

    Result1 var = Mip (a);

    var Result2 = Mip (b);

    var c = new Array [performance(1), result2]

  • The return value to the line for dialogue ObjectChoiceField

    Hello world

    Is it possible the value of line so that when the items in ObjectChoiceField Dialog(the one that's pops up when you click on the field) appears on multiple lines according to the width of the text?

    For now, it shows only one line per element truncate the ending text substituting... If any, it is displayed in several line wrapped Word when selected however.

    For any help or suggestion would be greatly appreciated that I would need to display the full text when the user scrolls items in the context menu

    Thank you & best regards

    Maia

    This is not supported by the ObjectChoiceField.  You can create a custom field to accomplish this where you manually draw the sting using a Graphics object.

Maybe you are looking for

  • GS752TP - Slow Web Interface

    Does anyone else have this problem? The web interface is so slow to become almost unusable. It loads the background then hangs just for a good 20-30 seconds. Sometimes, it loads the buttons... sometimes it is just with a white background. When I get

  • Upgrade memory for Satellite A10 S811 PSA10E

    I want to upgrade the memory on my old laptop, I found the manual and read a bit into it.It apparently uses DDR PC2100 (266 Mhz) features of two memory slots and only allows that up to 512 mb modules.Is it possible to use modules bigger or faster.I h

  • error 85

  • Are LabVIEW OOP "Helpers" editable?

    I am finally 'byting the bullet' and try to refactor one of my projects using LabVIEW OOP (seems to me ideal for OOP-ify). But I have a few "picky questions."  I don't always like how LabVIEW ' ' help me.  Some things that I can change (such as the d

  • where are stored passwords on my computer found

    where are stored passwords on my computer found