How to set the parameter

hi i am creating xml publisher and from OAF with parameters
cusname:
runreportdate:
go clear buttons
click go open report in pdf
SELECT hp.party_name CustomerName,
  csi.incident_number SRNumber,
  to_char(csi.incident_date,'DD-MON-YYYY') SRDate,
  to_char(csi.close_date,'DD-MON-YYYY') SRCloseDate,
  mtl.description SRItemName,
  csi.summary Summary,
  csi.problem_code,
  csi.incident_address SRAddress,
  csi.INCIDENT_COUNTRY SRCountry,
  '31-DEC-2008' Reportrundate,
  COUNT ( * ) over () cnt,
  cis.name,
  COUNT(
  CASE
    WHEN cis.name='Low'
    THEN 1
  END) over () Low,
  COUNT(
  CASE
    WHEN cis.name='Medium'
    THEN 1
  END) over () Medium,
  COUNT(
  CASE
    WHEN cis.name='High'
    THEN 1
  END) over () High1,
to_char(csi.incident_date,'MON-YYYY') SrMonth
FROM hz_parties hp,
  hz_cust_accounts hca,
  hz_contact_points hc,
  cs_incidents_all_b csi,
  ar_lookups arl,
  cs_incident_severities_b cis,
  mtl_system_items_kfv mtl
WHERE hca.cust_account_id   =csi.account_id
AND hp.party_type          IN ('PERSON','ORGANIZATION')
AND hp.status               ='A'
AND hp.party_id             = hca.party_id
AND hca.status              ='A'
AND hp.party_id             =hc.owner_table_id(+)
AND hc.owner_table_name(+)  ='HZ_PARTIES'
AND hp.party_id             =hca.cust_account_id
AND hc.contact_point_type(+)='PHONE'
AND hc.primary_flag(+)      ='Y'
AND hc.status(+)            ='A'
AND arl.lookup_type(+)      = 'PHONE_LINE_TYPE'
AND arl.lookup_code(+)      = hc.phone_line_type
AND hp.party_name='Business World'
AND csi.incident_date BETWEEN to_date('01-JAN-2000','DD-MON-YYYY') AND to_date('31-DEC-2008','DD-MON-YYYY')
AND cis.incident_severity_id=csi.incident_severity_id
AND mtl.inventory_item_id=csi.inventory_item_id
GROUP BY hp.party_name,
  csi.incident_number,
  csi.incident_date,
  csi.close_date,
  csi.summary,
  csi.problem_code,
  csi.incident_address,
  cis.name,
  csi.INCIDENT_COUNTRY,
  mtl.description,
  to_char(csi.incident_date,'MON-YYYY')
Am code
    public void initQuery(String paramString1, String paramString2)
          SrReportVOImpl vo=getSrReportVO1();
        if ((paramString1 != null) && (!("".equals(paramString1.trim()))) && (paramString2 != null) && (!("".equals(paramString2.trim()))))
          vo.setWhereClauseParams(null);
          vo.setWhereClauseParam(0, paramString1);
          vo.setWhereClauseParam(1, paramString2);
          vo.executeQuery();
    public XMLNode getPrintDataXML()
    //SrReportVOImpl vo=getSrReportVO1();
    OAViewObject vo = (OAViewObject)findViewObject("SrReportVO1");
    //vo.initQuery(s,s1);
    XMLNode xmlNode=(XMLNode) vo.writeXML(4,XMLInterface.XML_OPT_ALL_ROWS);
        return xmlNode;
CO code
      SrAMImpl am=(SrAMImpl)pageContext.getApplicationModule(webBean);
      if(pageContext.getParameter("Go")!=null)
          //am.searchSrDetails(pageContext,webBean);   
           String s=pageContext.getParameter("CustomerName");
           String s1=pageContext.getParameter("RunReportDate");
               am.initQuery(s,s1);
             // Get the HttpServletResponse object from the PageContext. The report output is written to HttpServletResponse.
             DataObject sessionDictionary = (DataObject)pageContext.getNamedDataObject("_SessionParameters");
             HttpServletResponse response = (HttpServletResponse)sessionDictionary.selectValue(null,"HttpServletResponse");
             try {
             ServletOutputStream os = response.getOutputStream();
             // Set the Output Report File Name and Content Type
             String contentDisposition ="attachment;filename=ServiceReport.pdf";
             response.setHeader("Content-Disposition",contentDisposition);
             response.setContentType("application/pdf");
                 Serializable param[]={pageContext.getParameter("CustomerName"),pageContext.getParameter("RunReportDate")};
                 System.out.println("hiiii 12");
                 // Get the Data XML Output as the XMLNode
                 XMLNode xmlNode = (XMLNode) am.invokeMethod("getPrintDataXML",param);
                 System.out.println("hiiii 13");
                 System.out.println(xmlNode.toString());
                 System.out.println("hiiii 14");
             // Get the Data XML File as the XMLNode
             ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
             xmlNode.print(outputStream);
             ByteArrayInputStream inputStream = new ByteArrayInputStream(outputStream.toByteArray());
             ByteArrayOutputStream pdfFile = new ByteArrayOutputStream();
             //Generate the PDF Report.
             TemplateHelper.processTemplate(
             ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
             APP_NAME,
             TEMPLATE_CODE,
             ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
             ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
             inputStream,
             TemplateHelper.OUTPUT_TYPE_PDF,
             null,
             pdfFile);
             // Write the PDF Report to the HttpServletResponse object and flush.
             byte[] b = pdfFile.toByteArray();
             response.setContentLength(b.length);
             os.write(b, 0, b.length);
             os.flush();
             os.close();
             pdfFile.flush();
             pdfFile.close();
             catch(Exception e)
             response.setContentType("text/html");
             throw new OAException(e.getMessage(), OAException.ERROR);
             pageContext.setDocumentRendered(false);
               System.out.println("hiiii 13");
      if(pageContext.getParameter("Clear")!=null)
          am.ClearFields(pageContext,webBean);
      }can any one tell me how to set the bind parameters or setting parameter

Hi,
Could not understand your problem exactly. DId you try adding bind variables in the query like below:
AND hp.party_name='Business World'
AND csi.incident_date BETWEEN to_date('01-JAN-2000','DD-MON-YYYY') AND to_date('31-DEC-2008','DD-MON-YYYY')
change to
AND hp.party_name=:1
AND csi.incident_date BETWEEN :2 AND :3
Please note you will need three bind variables. Second and third for SR Dates.
~Amol

Similar Messages

  • How to set the parameter selection *optional* for each subreport?

    Hi,
    I am using Crystal Reprots 11.
    I create 10 subreports, and each subreport contains a Parameters Field.
    The 10 subreports are put in 10 footer sections in increasing order, i.e. subreport1, subreport2, subreport3, ..., subreport10.
    When I use "Print Preview" to take a look at the whole report, CR prompts a "Edit Values" window for selecting parameter values for all 10 subreports.
    For example, if I only select parameter values for subreport1 and click "OK", 9 error messages on the "Edit Values" window come out above the selection list box of every other subreports (i.e. subreport2 ~ subreport10) showing that: 'The value is not valid'.
    Sometimes, I just want to review some specific subreports but not all.
    How should I do to set the parameter selection optional (not mandatory) for each subreport?
    Thank you in adavance.
    Edited by: Holdup on Feb 17, 2012 3:44 PM

    Hi,
    Here's how you can make the prompts optional (Assuming you're using CR 2008 or higher):
    1) Go into each subreport
    2) You should see the parameter in the Field Explorer. Right-click the name and select Edit > Look for an option called 'Optional Prompt'. Set it to true
    3) If you have a record selection in the subreport, then you need to modify the selection formula to something like this:
    if not(hasvalue({?Parameter_Name})) then True else = {?Parameter_Name}
    Hope this helps!
    -Abhilash

  • How to set the parameter of xi header in server proxy

    Hi,
    Does anyone have idea, how to set ref_to_message_id of a client proxy in the server proxy? My problem is, I send a message to a server proxy. The server proxy receives the message, retrieves the message id and tries to set the ref_to_message_id of the message, which will be sent to a client proxy, with its message id. I only find some useful functions to get these information of client proxy and server proxy like message_id etc. in runtime. But I did not find the "set" function to set these parameters. Maybe someone can tell me at first, if it is possible to set such parameters in runtime in server proxy.
    Can anyone help?
    regard
    hu

    Hi Chilla,
    what I want is to monitor the related message bundle easily. In my server proxy, many different client proxies are called and messages are transfered. So under the SXMB_MONI I will find many message exchanges for one server proxy call. Because the server proxy is called so often, I cannot distinguish under the SXMB_MONI, which message exchanges are caused by which server proxy call.
    So I have an idea. If I can set the ref_to_message_id of the messages for the client proxy calls with the message id of the server proxy call, then I can at first select the message of the server proxy call and find the messages for the related client proxy calls easily using the button "referencing message". The message id of the server proxy call can be retrieved. So my problem is now, how to set the ref_to_message_id of the messages for the client proxy calls with this messag id in the server proxy.
    Of cource, if anyone has better idea, how to resolve the situation in another way without setting the ref_to_message_id, pleases inform me.
    regards
    Bin

  • How to set the parameter ID value for a range

    I am trying to call transaction KSB1 (Display actual line items for cost center) by supplying all the default values for the selection options/parameters and skipping the selection screen from the calling program. However, for the cost center range, both HIGH and LOW field have the same PID (i.e. KOS). Same thing for the cost element range. When I set the value for PID "KOS", only the low value got populated.
    I tried to pass a BDC table to the
    CALL TRANSACTION 'KSB1' USING  bdc_tab
    , but the PID used before takes higher priority so the bdc_tab values got overwritten by the PID values for those fields.
    Does anybody know how to find or set the PID for a selection range? I need PID for Cost center range, cost element range and the period (PID="VPE").
    Any advice is appreicated. Thank you
    Minami

    otherwise try to make use of SUBMIT command.
    <b>Hi Preetahm ,
    KSB1 is a Report , not a Tcode to maintain master data or any thing like that ?, u can also cross check?</b>
    by using SUBMIT command u have to <b>RKAEP000</b> this program along with the selection screen.
    regards
    Prabhu
    Message was edited by: Prabhu Peram

  • How to set the default selection to "Select All" in a Multi valued parameter in SSRS 2008?

    Hello Everyone,
    How to set the default selection  to "Select All" in a Multi valued parameter in SSRS 2008?
    Regards
    Gautam S
    Regards

    You need to specify "Default Values" in the report parameter property. Choose similar option used in the "Available Values" option, this will allow the parameter to check "Select All".
    Regards, RSingh

  • How to set the resource_limit parameter to each user

    how to set the resource_limit initialization parameter to each user.
    it says like this;
    You must modify the RESOURCE_LIMIT initialization parameter. After you assign profiles to users, the Oracle database
    enforces the limits only when the RESOURCE_LIMIT parameter is set to TRUE. Therefore, you modify the RESOURCE_LIMIT initialization parameter to enforce the resource limits defined within each user's profile.
    alter system set resource_limit=true;
    if doing like this is it ok. ????
    Assume im logged as user "SYS". so if i use this command, will it alter the resource_limit parameter for this user SYS only OR for the entire database..... (for all other user)

    The RESOURCE_LIMIT parameter only enables resource limits that are defined in profiles.
    The DEFAULT profile, by default, is UNLIMITED for all resources.
    You should create a custom profile and set the limits you need. The next step would be to assign that profile to the users whom you want to limit. Other users in other profiles (or in the DEFAULT profile) would not have any limits enforced.
    See the documentation on CREATE PROFILE.
    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/statements_6010.htm#i2065930

  • How to set the Rman backup parameter.

    Hi,
    Can U guide me how to set the Rman backup path,control file auto backup & others parameter.

    Hi,
    Go through this,
    Show all configurable settings:
    RMAN>SHOW ALL;
    Write disk backups to the /rmanback directory: (%U will be replaced with unique filenames)
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT '/rmanback/%U';
    Backup using a flash recovery area rather than disk
    RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK FORMAT CLEAR;
    Configure RMAN to back up the control file after each backup
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP ON;
    By default, RMAN automatically names control file backups and stores them in the flashrecovery area.
    To configure RMAN to write control file backups to the /backup directory:( %F will generate a unique filename)
    RMAN> CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO '/backup/controlfile%F';
    Ensure that RMAN retains all backups needed to recover the database to any point in time in the last 7 days:
    RMAN> CONFIGURE RETENTION POLICY TO RECOVERY WINDOW OF 7 DAYS;
    Retain three backups of each datafile:
    RMAN> CONFIGURE RETENTION POLICY TO REDUNDANCY 3;
    Delete backups no longer required by the retention policy:
    RMAN> DELETE OBSOLETE;
    To override the configured retention policy for individual backups - use BACKUP.. KEEP (or CHANGE.. KEEP)
    Configure backups to run in parallel by assigning two sbt channels:
    RMAN> CONFIGURE DEVICE TYPE sbt PARALLELISM 2;
    Reset any CONFIGURE setting to its default by running the command with the CLEAR option
    RMAN> CONFIGURE CHANNEL DEVICE TYPE sbt CLEAR;
    RMAN> CONFIGURE RETENTION POLICY CLEAR;
    Regards,
    oraclekt
    Edited by: oraclekt on Sep 1, 2010 9:58 PM

  • How to set the JMX Engine parameter in Process Administation?

    Hi, All,
    I installed OBPM10gR3 over WLS 10gR3 clusting environment. OBPM Engines started successfully.
    There is one admin server running on localhost: 10101, one manager server running on localhost:10103, another managed server running on localhost:10105.
    I wonder how to set the JMX Engine configuration in Process Administration. How about the port? 10101 or 10103,10105? How about the Credentials, weblogic as the default user?
    I'm appreciated you can share me the JMX Engine configuration in Process Administation for weblogic clusting. Thanks in advance.
    Best Regards,
    Bill

    Hi, All,
    Here is more detail error when I set the JMX host/port to weblogic admin server/port, actually the BPM server is started, and the status of engine in process administation is started and I can run the process normally. I don't know why there is "null" url:
    [<D> 0518 16:22:32.930] Main (<3> http-8686-Processor15): should not recreate if it has not been disconnected
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): JspLocationStatus:fuego.jsfcomponents.ui.JspLocationStatus@18a270a
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): ---------------------- UILocation ------------------------------------
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): jspNode label Edit Engine {0} NODE LABEL = Edit Engine {0}
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): HelpRenderer.encodeEnd
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): 1. rendered = null
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): 2. renderedObj = true
    [<D> 0518 16:22:32.944] Main (<3> http-8686-Processor15): href = http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/admin_guide/index.html?t=modules/proc_adm_ref/c_Engines.html
    [<W> 0518 16:22:32.945] Main (<3> http-8686-Processor15): Error BPM-1242665762773
    [     (cont)     ] Main: Error
    [     (cont)     ] Main: Caused by: Cannot reach engine 'OBPMClusterEngine' at URL: 'null'.
    [     (cont)     ] Main: Caused by: ALBPM.mami.ServerManagement:type=Server,server=OBPMClusterEngine,*
    [     (cont)     ] Main: fuego.mami.exception.MAMIException: Error
    [     (cont)     ] Main:      at fuego.mami.exception.MAMIException.wrap(MAMIException.java:48)
    [     (cont)     ] Main:      at fuego.mami.engine.j2ee.J2EEAdminEngineAccessImpl.getEngineManagement(J2EEAdminEngineAccessImpl.java:72)
    [     (cont)     ] Main:      at fuego.mami.engine.j2ee.J2EEAdminEngineAccessImpl.getEngineManagement(J2EEAdminEngineAccessImpl.java:88)
    [     (cont)     ] Main:      at fuego.mami.Engine.getEngineManagement(Engine.java:1391)
    [     (cont)     ] Main:      at fuego.mami.Engine.updateEngineProperties(Engine.java:1327)
    [     (cont)     ] Main:      at fuego.webconsole.model.J2EEJSFEngine.applyPropertiesAction(J2EEJSFEngine.java:150)
    [     (cont)     ] Main:      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [     (cont)     ] Main:      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    [     (cont)     ] Main:      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    [     (cont)     ] Main:      at java.lang.reflect.Method.invoke(Unknown Source)
    [     (cont)     ] Main:      at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:126)
    [     (cont)     ] Main:      at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:72)
    [     (cont)     ] Main:      at javax.faces.component.UICommand.broadcast(UICommand.java:312)
    [     (cont)     ] Main:      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:267)
    [     (cont)     ] Main:      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:381)
    [     (cont)     ] Main:      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:75)
    [     (cont)     ] Main:      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
    [     (cont)     ] Main:      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
    [     (cont)     ] Main:      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    [     (cont)     ] Main:      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    [     (cont)     ] Main:      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    [     (cont)     ] Main:      at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
    [     (cont)     ] Main:      at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
    [     (cont)     ] Main:      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    [     (cont)     ] Main:      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    [     (cont)     ] Main:      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    [     (cont)     ] Main:      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    [     (cont)     ] Main:      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    [     (cont)     ] Main:      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    [     (cont)     ] Main:      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    [     (cont)     ] Main:      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    [     (cont)     ] Main:      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    [     (cont)     ] Main:      at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
    [     (cont)     ] Main:      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    [     (cont)     ] Main:      at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
    [     (cont)     ] Main:      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
    [     (cont)     ] Main:      at java.lang.Thread.run(Unknown Source)
    [     (cont)     ] Main: Caused by: fuego.papi.impl.EngineNotAvailableException: Cannot reach engine 'OBPMClusterEngine' at URL: 'null'.
    [     (cont)     ] Main:      ... 36 more
    [     (cont)     ] Main: Caused by: javax.management.InstanceNotFoundException: ALBPM.mami.ServerManagement:type=Server,server=OBPMClusterEngine,*
    [     (cont)     ] Main:      at fuego.mami.engine.j2ee.J2EEAdminEngineAccessImpl.getJmxEngineManagement(J2EEAdminEngineAccessImpl.java:147)
    [     (cont)     ] Main:      at fuego.mami.engine.j2ee.J2EEAdminEngineAccessImpl.getEngineManagement(J2EEAdminEngineAccessImpl.java:68)
    [     (cont)     ] Main:      ... 35 more
    [     (cont)     ] Main:
    Thanks in advance.
    Best Regards,
    Bill

  • How to set the table input in Query template?

    Hi all.
    I need to call a Bapi_objcl_change, with import parameter and a table as an input. I have done this, in BLS. I have set the table input in the
    form of xml. In BLS, I get the output(the value gets change in SAP R3, what i have given in BLS).  But if i set the same xml structure  in
    query template, I didn't get the output. Table input parameter does not take that xml source.  How to set the table input in Query template?
    can anyone help me?
    Regards,
    Hemalatha

    Hema,
    You probably need to XML encode the data so that it will pass properly and then xmldecode() it to set the BAPI input value.
    Sam

  • SRM 4.0- How to set the default values for product type (01) only for SC

    The radio button “Service” should not be visible.
    Also for search help (e.g. search for internal products) where a search should only be possible for product type 01 (goods). The system should not display the product type and internally always search for goods only.
    How to set the default values for product type (01) only for SC
    We needs to use Search help BBPH_PRODUCT which having parameter PRODUCT_TYPE
    Here we can set defalut value 01 but it is not correct one since same search help is using several places.
    We need to limit the search help results only for SC.
    Kindly help out me ASAP.

    The easiest way to set defautl values is to edit the batch class.
    Goto the characteiristic and go to update values.
    In here you probably have something like 0 - 100 as a spec range.
    On the next line enter the default value within this range.  At the end of the line, click in the box in the column labelled "D".  This indicates the defautl value for the characteristic.
    If you need to you can do this in the material classification view as well.
    Just to be clear, these values will only show up in the batch record.  You can not have defautl values in resutls recording screens.
    FF

  • How to set the report path in a model plugin

    I am trying to figure out how to set the report path in a process model plug-in. I can seem to figure out how to get access to it. It seems like this would be a reasonable thing to do since the plug-ins are for results processing. Does anyone know how to do this? We typically use the Sequential process model but I am trying to keep my plug-in as independent of that as possible. 
    Thanks.
    Solved!
    Go to Solution.

    If I understand, you want your plug-in, when enabled, to alter the settings of any other instances of the NI report plug-in such that their reports share the same directory as your plug-in is configured to use.
    If so, your plug-in can access and modify the settings of all other plug-in instances. All instances are passed to all plug-in entries point in the plugins array sub-property of the ModelConfiguration parameter. You can iterate through this array. Any element of the array with a Base.SequenceFilename equal to "NI_ReportGenerator.seq" is an instance of the NI report plug-in. Its report options are stored in the element under PluginSpecific.Options.
    You can change the report options to what ever you want. Note that the ReportOptions model callback is called from the Initialize model-plugin entry point, so you might want to ensure that your changes are applied after that, so they aren't overwritten. To do that, you could make your changes in the the Initialize entry point of your plug-in, and ensure that your plugin runs last. To make it run last, you could set the FileGlobals.ModelPluginComponentDescription.Default.Base.RunOrder in your plug-in file to a value greater than 0, such as 1.0 (see TestStand Help>>Fundamentals>>Process Model Architecture>>Process Model Plug-in Architecture>>Structure of Plug-in Sequence Files>>Model Plug-in Entry Points>>Order of Entry Point Execution at Run Time).

  • How to set the File Path to run a javascript using Plugin Code?

    Hi All,
    Im new to Indesign Plugin Development.Can any one help me out with my problem.
    What i want to do is to run a javascript using Plugin Code.When i went through this forum i was able to find out that i should use the IscriptRunner Class to automate this.I could also figure out that the Member Function to use is "CanHandleFile" &"RunFile".
    The first parameter in CanHandleFile & RunFile Member Function is to specify the path of the JavaScript File i suppose!I could also find out that IDFile has to used to set the file path Information.
    But im clueless how to set the Javascript FilePath using IDFile.Can any one help me how to do this?Any Code Snippets Please?
    Waiting for reply.
    Thanks
    myRiaz

    Hi,  Andreas<br /><br />  Can you explain this in detail? I found it in your post before.<br /><br />  The content of elements are returned through the Characters callback function:<br /><br />From ISaxContentHandler.h:<br /><br />/**<br />        Receives character data<br /><br />The parser will call this method to report each chunk of<br />        character data. SAX parsers may return all contiguous<br />        character data in a single chunk, or they may split it into<br />        several chunks. But all characters in any single<br />        event must come from the same external entity so the<br />        Locator provides useful information.<br /><br />Note some parsers will report whitespace using the<br />        IgnorableWhitespace() method rather than this one (validating<br />        parsers must do so).<br /><br />@param Chars The characters from the XML document.<br />        */<br />virtual void Characters(const PMString& chars) = 0; <br /><br />  What i have done is implement my own SAXContentHandlerServiceBoss, and in my file XXXSAXContentHandler.cpp, I override the fonctions StartElement, EndElement, and Characters() like below: I add the PMString xmlData to collect the file content:<br /><br />class XXXSAXContentHandler : public CSAXContentHandler<br />{<br />void XXXSAXContentHandler::Characters(const WideString& chars)<br />{<br />xmlData.Append(chars);<br />}<br /><br />void XXXSAXContentHandler::StartElement(const WideString& uri, const WideString& localname, const WideString& qname, ISAXAttributes* attrs)<br />{<br />xmlData.Append("<"); xmlData.Append(localname); xmlData.Append(">");<br />}<br />void XXXSAXContentHandler::EndElement(const WideString& uri, const WideString& localname, const WideString& qname)<br />{<br />xmlData.Append("</"); xmlData.Append(localname); xmlData.Append(">");<br />}<br /><br />}<br /><br />and in my program, I use the code below to call the fonction I overrided, but I dont know how I can get the String xmlData I defined in the XXXSAXContentHandler.cpp<br /><br />InterfacePtr<IK2ServiceRegistry> serviceRegistry(gSession, UseDefaultIID());<br /><br />InterfacePtr<IK2ServiceProvider> xmlProvider(serviceRegistry->QueryServiceProviderByClassID(kXMLParserService, kXMLParserServiceBoss));<br /><br />InterfacePtr<ISAXServices> saxServices(xmlProvider, UseDefaultIID());<br />InterfacePtr<ISAXContentHandler> saxHandler(::CreateObject2<ISAXContentHandler>(kXXXSAXContentHandlerServiceBoss));<br />saxHandler->Register(saxServices);<br />bool16 parseFailed = saxServices->ParseStream(readStream, saxHandler);<br /><br />Can you give me any help?<br /><br />Thanks and regards!

  • Sending image sequence job to compressor in command line : how to set the framerate?

    Hello,
    In Compressor, when you import a image sequence, it's possible to set the framerate and add an audio file before choosing a preset and lauching the encoding task.
    I want to dlo the same thing with command line. I know how to send a compressor job with command line, but no how to add theses settings.
    In the compressor command line help, we've got this :
    Job Info: Used when submitting individual source files. Following parameters are repeated to enter multiple job targets in a batch
              -jobpath <url> -- url to source file.
                                               -- In case of Image Sequence, URL should be a file URL pointing to directory with image sequence.
                                               -- Additional parameters may be specified to set frameRate (e.g. frameRate=29.97) and audio file (e.g. audio=/usr/me/myaudiofile.mov).
    So there are also framerate and audio parameters in command line but i've no idea how to write the command line with theses parameters
    Here is an example of command line for Compressor (by Apple) :
    ./Compressor ‑clusterid tcp://127.0.0.1:51737 ‑batchname myBatch ‑jobpath /Volumes/Source/ShortClips/NTSC24p.mov ‑settingpath /Users/stomper10/Library/Application\ Support/Compressor/PhotoJPEG.setting ‑destinationpath /Users/machinename/Movies/myDestinationFilename.mov.
    Thank you for your help!

    You can see in the command sh running-config command
    show running-config : Displays the current access point operating configuration
    Use the guest-mode SSID configuration mode command to configure the radio interface (for the specified SSID) to support guest mode. Use the no form of the command to disable the guest mode.
    [no] guest-mode .
    Here is the guideline for usage
    The access point can have one guest-mode SSID or none at all. The guest-mode SSID is used in beacon frames and response frames to probe requests that specify the empty or wildcard SSID. If no guest-mode SSID exists, the beacon contains no SSID and probe requests with the wildcard SSID are ignored. Disabling the guest mode makes the networks slightly more secure. Enabling the guest mode helps clients that passively scan (do not transmit) associate with the access point. It also allows clients configured without a SSID to associate.
    Examples
    This example shows how to set the wireless LAN for the specified SSID into guest mode:
    AP(config-if-ssid)# guest-mode
    This example shows how to reset the guest-mode parameter to default values:
    AP(config-if-ssid)# no guest-mode

  • How to test the parameter new_active_sess_pool_p1

    Dear all,
    How to test the parameter new_active_sess_pool_p1? I have set the new_active_sess_pool_p1=1,and I login db using the user HXL,execute DML and make sure the session is active,now i login the db again and found the new_active_sess_pool_p1 not work,Why?
    Begin
      Dbms_Resource_Manager.Create_Pending_Area();
      Dbms_Resource_Manager.update_Plan_Directive(Plan => 'MAXCAP_PLAN',
                                                  Group_Or_Subplan => 'MAXCAP_PLAN_G1',
                                                  new_active_sess_pool_p1 => 1);
      Dbms_Resource_Manager.Validate_Pending_Area();
      Dbms_Resource_Manager.Submit_Pending_Area();
    End;
    Begin
      Dbms_Resource_Manager.Create_Pending_Area();
      Dbms_Resource_Manager.Set_Consumer_Group_Mapping(Attribute      => Dbms_Resource_Manager.Oracle_User,
                                                       Value          => 'HXL',
                                                       Consumer_Group => 'MAXCAP_PLAN_G1');
      Dbms_Resource_Manager.Validate_Pending_Area();
      Dbms_Resource_Manager.Submit_Pending_Area();
    End;

    Hi,
    The issue have solved,just as run the flowing:
    BEGIN
    DBMS_RESOURCE_MANAGER_PRIVS.GRANT_SWITCH_CONSUMER_GROUP (
    GRANTEE_NAME => 'HXL',
    CONSUMER_GROUP => 'MAXCAP_PLAN_G1',
    GRANT_OPTION => TRUE);
    END;

  • How to set the option Bit-mapped indexes to true ?

    Hi,
    I a not a an Oracle Administrator. Usually, I just use Oracle as developper. I have got a Oracle 10g database. I can not import data in my database because the Bit-mapped options is not set.
    When I type
    select banner from v$version
    I get this result :
    BANNER
    Oracle Database 10g Release 10.2.0.1.0 - Production
    PL/SQL Release 10.2.0.1.0 - Production
    CORE 10.2.0.1.0 Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    I run the import and I get this error :
    IMP-00017: following statement failed with ORACLE error 439:
    "CREATE BITMAP INDEX "ID_ACC_DO" ON "ES_AUDIT_CONNEXION_ARCH" ("DATE_OUVERTU"
    "RE" ) PCTFREE 10 INITRANS 2 MAXTRANS 255 STORAGE(INITIAL 33554432 FREELIST"
    "S 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "IND_XL" LOGGING"
    IMP-00003: ORACLE error 439 encountered
    ORA-00439: feature not enabled: Bit-mapped indexes
    I typed the command :
    SELECT * FROM V$OPTION WHERE PARAMETER LIKE 'Bit-mapped%';
    I get the result :
    PARAMETER
    VALUE
    Bit-mapped indexes
    FALSE
    How to set this parameter to true ?
    Best regards,
    Xavier

    I beleiev that you are on Standard Edition.Bitmap indexes can be used only when you are working with Enterprise edition.
    SQL> select  * from V$option where parameter like '%Bit%';
    PARAMETER
    VALUE
    Bit-mapped indexes
    TRUE
    SQL> select * from V$version;
    BANNER
    Oracle Database 11g *Enterprise Edition* Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL>I guess you see the entry coming of Enterprise Edition in my banner.This is missing in your V$version, so you are using Standard Edition install.
    You need to move to Enterprise edition to use Bitmap Indexes.
    HTH
    Aman....
    Edited by: Aman.... on Dec 11, 2008 3:09 PM
    added a little more.

Maybe you are looking for