Script QPAC

Hi,
I am trying to access my custom java class file in Script QPAC.
QPAC is not recognising my class file.
I did settings in classpath to include my class file.
Still not working.
Any help would be appreciated!

Hi Arshad,
Have you tried wrapping up your class in a jar file and placing it into jboss/lib folder?
What is the error message that you get? How do you test?
If you are testing directly from within the Test tab in the Sqript QPAC window, then you should probably read this thread and follow Howard's advice for adding jars to the Designer classpath
Howard Treisman, "EmailReceiver Qpac testing-tab" #2, 19 Oct 2005 9:43 pm
Regards,
Evangelos

Similar Messages

  • NoClassDefFound error when using custom Java package in scripting QPAC

    Hi,
    I compiled a little Java-package (.jar), which contains a class that uses
    com.adobe.workflow.datatype.form.FormDataTypeInstanceImpl.
    I put my library in the lib folder of JBoss (...\server\all\lib).
    Then I'm was trying to invoke my custom class in the scripting QPAC. But I'm constantly getting the error message
    NoClassDefFound com\adobe\workflow\datatype\form\FormDataTypeInstanceImpl. I already put
    adobe-wkf.jar (and various others) in the lib folder of JBoss. Without ever succeeding. Unfortunately.
    I'm going mad about this.
    Is there a way to address a custom package in the scripting QPAC, which uses
    FormDataTypeInstanceImpl?
    Steve

    Removing the LiceCycle jars from the lib folder did not work. I still get the same error message.
    What I wanted to do is provide some basic utilities, without having to spend a lot of time designing QPAC user interfaces.
    My utility class contains methods like this one:
    @param 
    pFormData
    @return
    @throws 
    ParserConfigurationException
    @throws 
    SAXException
    @throws 
    IOException
    public static 
    org.w3c.dom.Document formToXml
    FormDataTypeInstanceImpl pFormData
    throws 
    ParserConfigurationException, SAXException, IOException 
    byte
    data = pFormData.getXFAData
    InputStream objXMLInputStream = 
    new 
    ByteArrayInputStream
    data
    // create new Document object
    DocumentBuilderFactory objFactory = DocumentBuilderFactory.newInstance
    DocumentBuilder objBuilder = objFactory.newDocumentBuilder
    org.w3c.dom.Document objDocument = objBuilder.parse
    objXMLInputStream
    return 
    objDocument;
    Even without ever invoking the aforementioned method, I get the error
    NoClassDefFound: FormDataTypeInstanceImpl. Which is pretty weird.
    Do I have to write my own classloader?
    Steve

  • Script QPAC: how to get a process manager instance?

    Hi,
    I was desperately fiddling about the scripting QPAC, trying to get an instance of process manager.
    Since PATAbstractServiceEx is an abstract class, I cannot instantiate it and call its getContext().getProcessManager() methods.
    I also tried to access a session using QLCSessionFactory.createSession("...") and then calling the session's getProcessManager() method. But no sessions were found.
    Does anyone know, which classes/methods to use in order to get a process manager instance?
    Regards,
    Steve

    import com.adobe.workflow.manager.ProcessManager;
    ProcessManager _pm = patServiceContext.getProcessManager();
    Page 36 of "Creating workflows".
    Howard
    http://www.avoka.com

  • Vesatility of the script QPac

    I was writing a servlet to call the Render QPac but had difficulty passing data as I would keep getting an error "Content no allowed in prolog". The data I was passing was valid xml but realised it was a limitation of the QPac. I could have wrote the xml data file to disk then passed the path but that isn't a great solution.
    I discovered I could duplicate the functionality of the Render QPac (with more versatility). You can pass in your process variables from your servlet
    Add the following code to your script QPac:
    import com.adobe.fm.FMConstants;
    import com.adobe.formServer.client.EJBClient;
    import com.adobe.formServer.interfaces.IFormServer;
    import com.adobe.formServer.interfaces.IOutputContext;
    import com.adobe.formServer.interfaces.RenderFormException;
    import com.adobe.idp.Context;
    import com.adobe.idp.um.api.AuthenticationManager;
    import com.adobe.idp.um.api.UMException;
    import com.adobe.idp.um.api.UMFactory;
    import com.adobe.idp.um.api.UMConstants;
    import com.adobe.idp.um.api.infomodel.AuthResult;
    import com.adobe.idp.Document;
    import com.adobe.workflow.pat.service.PATAbstractService;
    import com.adobe.workflow.pat.service.PATExecutionContext;
    import com.adobe.workflow.pat.service.PATServiceException;
    import com.adobe.workflow.pat.service.PATServiceResult;
    import com.adobe.workflow.pat.service.PATServiceContext;
    Context context = null;
    IOutputContext iOutputContext=null;
    String formTemplate="";
    String formPref="";
    Document data=null;
    String options="";
    String userAgent="";
    String webRoot="";
    String targetURL="";
    String contentURI="";
    String baseURL="";
    com.adobe.idp.Document outDoc=null;
    try {
    AuthenticationManager manager = UMFactory.getInstance().getAuthenticationManager();
    Context context = new Context();
    AuthResult result = manager.getAuthResultOnBehalfOfUser(
    "LiveCycle Form Manager System User",
    UMConstants.SpecialDefaultPrincipals.DOMAIN_DEFAULT,
    new Context());
    context.initPrincipal(result);
    IFormServer oFS = new EJBClient();
    if(oFS!=null){
    oFS.setInvocationContext(context);
    formTemplate = patExecContext.getProcessDataStringValue("/process_data/@templatepath");
    formPref = patExecContext.getProcessDataStringValue("/process_data/@formpref");
    data = (Document)patExecContext.getProcessDataValue("/process_data/@data");
    options = patExecContext.getProcessDataStringValue("/process_data/@options");
    targetURL = patExecContext.getProcessDataStringValue("/process_data/@targeturl");
    contentURI = patExecContext.getProcessDataStringValue("/process_data/@contenturi");
    baseURL = patExecContext.getProcessDataStringValue("/process_data/@baseurl");
    iOutputContext = oFS.renderForm(formTemplate, //template name
    formPref, //render preference
    data, options, userAgent, webRoot, //App URL
    targetURL, contentURI, //ContentRoot URI
    baseURL);
    outDoc = new com.adobe.idp.Document(iOutputContext.getOutputContent());
    outDoc.setContentType(iOutputContext.getContentType());
    patExecContext.setProcessDataValue("/process_data/@output",outDoc);
    } catch (UMException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    catch (RenderFormException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();

    Very cool - this does indeed show the versatility of the Script QPac.
    For readers of this post please note that the script QPac by default is an "Interactive" QPac - meaning that if you use it in a workflow that you intend to get results from a sycnronousInvoke() that it will not return the results immediately.  In order to get the resulting PDF you must call getResults().
    This can be tweaked by deploying another ScriptQPac which is NOT an interactive QPac.  To do this you must modify the component.xml file in the Script QPac to say false and repackage the jar file.  Once you deploy this workflow you will notice that you can use the QPac in Syncronous Workflow calls, and the results will be returned. 
    Note:  once you make this change do not use the "interactive" checkbox in the script qpac.
    Good luck!
    Will

  • Where to put custom .jar-files in order to use them in scripting QPAC?

    Hi,
    For testing purposes, I wrote a simple class and put it in a .jar-file to use in scripting QPAC. Unfortunately, I get the following error message in JBOSS:
    Class: FooBar not found in namespace
    Where do I have to put custom library (jar-)files in order for JBOSS to find them? I already tried
    [...]\jboss\lib as well as
    [...]\jboss\server\all\lib.
    Regards,
    Steve

    Hi Steve
    You need to put them in two places:
    1. In the server classpath, so that they can be found at runtime. jboss\server\all\lib should work, or you can even drop them into the server/all/deploy directory. I think if you put them in the lib directory, you need to restart Jboss, whereas if you put them in the deploy directory, they should be dynamically picked up.
    2. For testing purposes, the extra jars need to be in the classpath of the Workflow Designer. Please download our SQLPlus QPAC from:
    http://www.avoka.com/avoka/qpac_library.shtml
    It includes a document that describes a technique for adding extra jars to the classpath.
    Regards,
    Howard
    http://www.avoka.com

  • Script QPAC bug workaround

    Hello,
    Script QPAC has an issue, in fact when the script is encoded and placed into the database, it seemed to mess up the CDATA brackets.
    Therefore if you close workflow designer and then open it again trying to load the process map, the Script QPAC wouldn't open and give an error message, does any body have a workaround for this issue ?
    Thank you,
    Yasser M. Maree

    Hi Yasser,
    I have LC WF 7.01 installed using the Script QPAC from SDK 7.03.
    I created a simple 1 step process consisting of a Script QPAC with the following code:
    System.out.println("&&&&&&&& HELLO &&&&&&&&");
    When I test the workflow, I am presented with &&&&&&&& HELLO &&&&&&&& in the command window.
    This, and the fact that you tried unsuccessfully to use the newer version of the QPAC, indicates to me that you should upgrade to the current shipping version of Adobe LiveCycle Workflow.
    Cheers,
    Val@Adobe

  • Accessing Attachments on the first Action in a 7.2 WF

    A user fills out a form in Form Manager and they have attached some files to the workflow. The first step in the workflow is a script QPAC which needs to manipulate the attachments (need to extract the attachments, reader extend them and put the back...). If the first step were a user task in 7.2, you can copy the attachments to a document list from the previous step but if the first step in the workflow is a script, how do you access the attachments?
    Ideally we would like to have all of the attachemnts available in a document list at the very first step of the workflow or at lest some mechanism to put them into a document list.

    Chris, thanks for your suggestions. The code you supplied does allow the initial user task to be retrieved.
    I'm having some difficulty getting the attachments out of the task object in a usable format.
    task.getAttachments() returns a java.util.Collection according to the documentation. However, this seems to be wrong. It actually returns POFObjectSetWrapper which is undocumented. If you try to set a workflow variable with the return value from getAttachments() you get an error.
    eg.
    Collection list = task.getAttachments();
    patExecContext.setProcessDataListValue("/process_data/attachments", list);
    This gives you an error that it cannot coerce BOITaskAttachment objects to Document objects. "/process_data/attachments" is a Document List variable.
    So I figured I need to iterate through the POFObjectSetWrapper object and create a new collection of document objects.
    eg.
    Collection docs = null;
    for (Iterator it=list.iterator();it.hasNext();){
    BOITaskAttachment att = it.next();
    Document d = new Document(att.getContent());
    docs.add(d);
    This gives an error because altho the documentation indicates that the return from getAttachments() is a collection POFObjectSetWrapper does not seem to implement Collection. Nor does it implement POFObjectSet which would allow us to do the following:
    while (list.next() ) {
    BOITaskAttachment att = (BOITaskAttachment) atts.getBOIObject();
    Document d = new Document(att.getContent());
    docs.add(d);
    I need to get the attachments into Workflow Variables... preferably a List of Documents.
    Can anyone shed any light on how to do this?
    4Point Solutions

  • Email Receiver: how to get the names of stored attachments?

    Hi,
    I hate to spam this forum. But I'm in desperate need of the names of attachments, the email receiver QPAC receives.
    If I select a list variable for the email receiver to store all attachments received into, all filenames appear to be lost. Also the MIME-types appear to be lost. Which is not big a problem, since I may use javax.activation in order to identify the MIME-type of any fileinputstream. But sometimes, I am unable to correctly identify the MIME-type. Then I need to fall back on the file's original name.
    So the simple question is: how do I get the 'filename' attribute of org.idp.Document objects instantiated by email receiver QPAC?
    Did anyone ever do that?
    Regards,
    Steve

    Hi Diana,
    1) I used the XPath expression indicated in the screenshot below. It resulted in the process variable
    filename being
    NULL.
    2) I using the following Java-Code in a scripting QPAC:
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.Set;
    ArrayList list = patExecContext.getProcessDataListValue("/process_data/attachments");
    System.out.println("[TEST] num attachments: "+ list.size());
    for (Iterator it = list.iterator(); it.hasNext(); ){
    com.adobe.idp.Document doc = (com.adobe.idp.Document)it.next();
    System.out.println("[TEST] attachment #1, filename: '"+ doc.getFile().getName() +"'");
           System.out.println("[TEST] attachment #1, filename-attribute: '"+ doc.getAttribute("wsfilename") +"'");
            System.out.println("[TEST] attachment #1, file size: '"+ doc.length() +"'");
           System.out.println("[TEST] attachment #1, content-type: "+ doc.getContentType());
      Set attributeList = doc.listAttributes();
    System.out.println("[TEST] num attributes: "+ attributeList.size());
      for (Iterator attributeIter = attributeList.iterator(); attributeIter.hasNext();){
      String attribute = (String)attributeIter.next();
      System.out.println("[TEST] attribute found: "+ attribute);
    Its output in the logfile was the following:
    [STDOUT] [TEST] num attachments: 1
    [STDOUT] [TEST] attachment #1, filename: '646834941068179579'
    [STDOUT] [TEST] attachment #1, filename-attribute: 'null'
    [STDOUT] [TEST] attachment #1, file size: '14624'
    [STDOUT] [TEST] attachment #1, content-type: null
    [STDOUT] [TEST] num attributes: 0
    Is there something I did wrong?
    Or is it even possible that the Email Receiver does not care about attributes of attachments?
    Regards,
    Steve

  • 1     Unable to retrieve the form values entered by the user from the xpath expression(with or without s

    1.1 Description of the Workflow
    We have designed a Workflow, which has an init form HighLevelQuestionnaire.
    1. The user attempts to start the workflow by submitting this form, which has an XML schema embedded.
    2. When user submits the data, we set workflow variables to fetch data from the init-form and all the values entered by the user are stored in the database.
    3. Based on the values, value of Risk Level is calculated to be either High or Medium, and user is routed to one of the two routes.
    4. The user QPAC is used to show the next form to the user.
    Another form has been designed called AssessRisk in which user is asked to confirm the Risk Level.
    5. At this point, we use Script QPAC to print the values in the log.
    1.2 Problem description
    1. In the Point No. 6 of the workflow, the values are not printed in the log. A blank space is printed instead.
    2. Initially, we embedded the schema in the form. But when values were not printed, we removed the schema. Even then it didnt work.
    1.2.1 User QPAC Specifications
    Properties of user QPAC used in Step 4 of the workflow
    Mappings Tab: -
    Input Variable --- No variable
    Template URL ----- Form11.xdp
    Output Variable ---- myform
    Myform is a form-variable, which has template URL as Form11.xdp
    1.2.2 Script QPAC
    1.2.2.1 With XML Schema embedded
    import com.adobe.workflow.pat.service.*;
    System.out.println("----------- High Level Questions -----------");
    System.out.println("--1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/RiskLevel/general/Risk_Level") + " @@@@@");
    Note:- Here RiskLevel is the schema root of myform and Risk_Level is the schema variable mapped with textfield on the form
    1.2.2.2 Without XML Schema embedded
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data/fields/Risk_Level") + " @@@@@");
    1.2.2.3 Conclusion
    In both the cases, a blank value is printed. In both the cases, we get some output which is when we use
    System.out.println("--1.1- the RiskLevel is: " + patExecContext.getProcessDataStringValue("/process_data/myform/form-data/data/xdp/dataset s/data ") + " @@@@@");
    In this case all the values are printed with space in between.
    This is the basic feature which has to be used while developing workflows.

    Hi
    You might want to try using VariableLogger, at:
    http://www.avoka.com/avoka/qpac_library.shtml
    It's a little more reliable than the script QPAC, especially if one of your xpath expressions is wrong.
    Please note that embedding the schema makes no difference in how the data from the form is stored. What makes the difference is whether your fields are bound to specify schema elements, or whether they use the "normal" binding.
    Howard

  • Fail to use Form Server Render Form QPAC

    The opeation become stall in the Form Server Render Form QPAC, its exception is :com.adobe.formServer.interfaces.RenderFormException: XMLFormFactory, PAexecute failure: "(com.adobe.document.xmlform.ReturnStatus@b9e139) XMLForm, render : 12309, XFA template Model is empty."
    BTW: is there document to describe each items's meaning and example values in this QPAC ? Thanks in advance.
    Detail log is:
    2007-07-05 13:52:12,984 INFO [com.adobe.formServer.FormServer] ALC-FRM-001-501: FormName:/Forms/attendance/attendanced_V1.2.4_final.xdp : FormPreference:PDFForm : Debug:false : PDFVersion:null : Content Root:xappstore://10.162.119.7 : Base URL:null : App Root:null : User Agent:null
    2007-07-05 13:52:13,015 ERROR [com.adobe.document.XMLFormService] $$$/com/adobe/document/xmlform/msg.XFA=XMLForm, render : 12309, XFA template Model is empty.
    2007-07-05 13:52:13,015 ERROR [com.adobe.formServer.PA.XMLFormAgentWrapper] ALC-FRM-001-017: mid,tid: 12309,3420.3492 sev: f text: XMLForm, render : 12309, XFA template Model is empty.
    2007-07-05 13:52:13,015 ERROR [com.adobe.livecycle.formsservice.exception.FormServerException] ALC-FRM-001-013: XMLFormFactory, PAexecute failure: "(com.adobe.document.xmlform.ReturnStatus@b9e139) XMLForm, render : 12309, XFA template Model is empty."
    2007-07-05 13:52:13,015 ERROR [com.adobe.formserver.wfplugin.RenderForm.RenderFormService] FSQP011: An unexpected exception occurred
    com.adobe.formServer.interfaces.RenderFormException: XMLFormFactory, PAexecute failure: "(com.adobe.document.xmlform.ReturnStatus@b9e139) XMLForm, render : 12309, XFA template Model is empty."
    at com.adobe.formServer.client.EJBClient.renderForm(EJBClient.java:356)
    at com.adobe.formserver.wfplugin.RenderForm.RenderFormService.execute(Unknown Source)
    at com.adobe.workflow.engine.PEUtil.executeAction(PEUtil.java:434)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.continueBranchAtAction(ProcessEngineBMTBea n.java:2924)
    at com.adobe.workflow.engine.ProcessEngineBMTBean.asyncContinueBranchCommand(ProcessEngineBM TBean.java:2294)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionConta iner.java:214)
    at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionI nterceptor.java:149)
    at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor. java:54)
    at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:106)
    at org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1 58)
    at org.jboss.ejb.plugins.TxInterceptorBMT.invoke(TxInterceptorBMT.java:62)
    at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstance Interceptor.java:154)
    at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:153)
    at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor. java:122)
    at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    at org.jboss.ejb.Container.invoke(Container.java:873)
    at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invoke(BaseLocalProxyFactory.java:415)
    at org.jboss.ejb.plugins.local.StatelessSessionProxy.invoke(StatelessSessionProxy.java:88)
    at $Proxy206.asyncContinueBranchCommand(Unknown Source)
    at com.adobe.workflow.engine.ProcessCommandControllerBean.doOnMessage(ProcessCommandControll erBean.java:133)
    at com.adob

    If you install the WorkFlow SDK, there is a document under Documentation that explains all the settings. This is a subset:
    To add the Form Server Render Form component to your workflow:
    1. Drag the Form Server Render Form component from the Components palette to your workflow.
    2. Click the General tab. In the Name box, type a name to identify this component in your workflow.
    3. (Optional) In the Description box, type the description of the component.
    4. Click the Input tab. In the Form Query box, type the Uniform Resource Identifier (URI) component (no
    protocol or schema) of the form to be rendered. This URI is appended to the Content Root URI value to
    form an absolute reference to the form. For example, type:
    Forms/myForm.xdp
    Forms/myForm.pdf
    5. (Optional) In the Form Preference box, type the output format of the form. The default value is AUTO.
    For details about form preferences, see Selecting a form preference on page 11.
    6. (Optional) In the Options box, type the rendering options, such as locale or character set. Use an &
    (ampersand) to separate the options. For example, type:
    {$ TaggedPDF=false&PDFVersion=1.6&CharSet=UTF-8 $}
    For details about rendering options, see Selecting rendering options on page 12.
    7. (Optional) In the User Agent box, type the user agent that identifies the application that will be used to
    display the form. The default value is Mozilla/3.x. This property specifies the HTTP header
    User-Agent that provides information about the target device. A target device is a client application,
    such as a web browser. This value takes precedence over what may exist in environment variables.
    You can retrieve this value from the JSP/ASP environment.
    8. If you have an application server that will incorporate services from LiveCycle Forms, in the
    Application Web Root box, type the servers root location. This root location is combined with the
    Target URL to form an absolute URL to access application-specific web content.
    9. (Optional) In the Input XML Data box, type the location of the XML file that contains the information to
    use to prepopulate the form. This data will be merged with the form during rendering. For example,
    type:
    C:\input.xml
    Alternatively, you can use a form variable to retrieve data from a previous step in your workflow. Form
    variables are primarily used to store the data from the forms submitted to LiveCycle Workflow Server.
    The data can then be accessed at run time. For example, type the following expression:
    serialize(/process_data/formVar/form-data/data/*,false)
    The serialize function takes the data from the form variable. In this example, the formVar process
    variable represents the Form data type. The false parameter encodes the data in UTF-8 in the XML
    code. You can optionally set this value to true if you do not want UTF-8 encoding. For more
    information about the Form data type, how it works with Adobe LiveCycle Form Manager, and its use in
    a workflow process, see the Configuring Human Interaction chapter in Creating Workflows.
    10. (Optional) In the TargetURL box, type the URL of the target device that will receive the posts from this
    form. The target URL is inserted into the transformed output invoked during a Submit operation. For
    example, type:
    http://servername:8080/fm/processFormServlet?action=0
    11. In the Content Root URI box, type the URI of the AppStore to specify the absolute reference to a
    physical repository from which the content (forms, images, or scripts) will be retrieved. For example,
    type:
    file:///c:/forms
    xappstore://hostname
    This value is combined with the Form Query value to form the absolute path to the form to be
    rendered.
    Note: The Content Root URI is often constant across many user applications and can be set
    administratively to a persistent value.
    12. If you are using relative paths (such as ../images/graphic.jpg), in the Base URL box, type a base
    URL to identify the HTTP equivalent of the Content Root URI. This URL is required for transformations
    that include HREF references to external dependencies such as images or scripts. When a dependency
    path is absolute, this parameter is ignored; otherwise, the dependency path is combined with the Base
    URL. For example, type:
    http://hostname/forms
    13. If required by the server on which LiveCycle Forms is installed, in the User Name box, type a user name,
    and, in the Password box, type a password. If the password is encrypted, it must be Base64 encrypted.
    For more information, see Encrypting passwords on page 6.
    14. Click the Output tab. In the Output Document box, click the ellipsis button, and then select the
    variable that will receive the new document. The data type for this variable must be document.
    15. In the Page Count box, click the ellipsis button, and then select the variable that will receive the page
    count. The data type for this variable must be integer.
    16. In the Page Number box, click the ellipsis button, and then select the variable that will receive the
    page number. The data type for this variable must be integer.
    17. Click OK.
    Jasmin

  • How to delete the members in one dimension use the maxl script

    i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.

    MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database

  • Unable to capture the adf table column sort icons using open script tool

    Hi All,
    I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
    1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
    2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.

    Hi keerthi,
    1. I have pasted the code for the first issue
    web
                             .button(
                                       122,
                                       "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
                             .click();
                        adf
                        .table(
                                  "/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
                        .columnSort("Ascending", "Name" );
         }

  • If statement in Custom Calculation Script

    I have 16 fields and if even one of them ="1" I have to list it in another field.  I do not want to count or sum.  If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
    Please help.
    Thank you in advance~mjc

    You need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
    Do you know how to write JavaScript?
    Do you know how to enter JavaScript calculations into a form field?
    For custom calculation of the text field I could write something like:
    // define an array of the field names to check
    var aNames = new Array("Text1", "Text2", "Text3", "Text4",
    "Text5", "Text6", "Text7", "Text8",
    "Text9", "Text10", "Text11", "Text12",
    "Text13", "Text14", "Text15", "Text16");
    // define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
    var bMatch = false;
    // value for text field
    var TextValue = 0;
    // logical value of field being equal to 1 test
    var FieldIs1 = false;
    // loop through all the fields and test the fields value
    for(i = 0; i < aNames.length; i++) {
    // logically OR the result of field i value equal to true with bMatch
    // get the value of field
    TextValue = this.getField( aNames[i] ).value;
    // test the value of the field
    FieldIs1 = Number(TextValue) == 1
    // logically OR the 2 values
    bMatch = FieldIs1 | bMatch;
    } // end field processing
    // set the field value
    if(bMatch == true) {
    event.value = "Y";
    } else {
    event.value = "N";
    You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names.

  • If Statement in SAP Scripts

    Hi All,
    I have written the below If statement in  SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..
    /:           IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /:           &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /:           &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /:           &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /:           ELSE
    /:           ENDIF.

    Hi neha,
    Try to use the '/E' fo rnext line
    /E->Extended line
    Here is a code:
    /: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
    /E  &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
    /E  &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
    /E &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
    /: ELSE
    /: ENDIF.
    Hope this helps you.
    Regards,
    Rajani

  • Installation Problem on 11g, RHEL 5 - Unable to generate temporary script

    Hello all,
    This is for the first time i am encountering this kind of error on 11g. Half way through installation i get this error.
    All parameters set correct, used the official installation technique (works fine previously), except for this time i am getting a weird error, which does not allow me to continue with the installation.
    Please help.
    Environment
    Oracle 11g
    RHEL 5
    Error on GUI -
    OUI-10053: Unable to generate temporary script: {0}. Unable to continue install
    Error on command prompt -
    OUI-10053:Unable to generate temporary script: /u01/app/oraInventory/orainstRoot.sh. Unable to continue install.
    Help appreciated.
    Thanks

    Hi Monu Koshy
    Can you please control the user rights and also the df ?
    ls -al /u01/app/oraInventory/
    df -h /u01/app/oraInventory/
    Regards,
    Hub

Maybe you are looking for