Pass additional parameters AS 3

I am new to Flash and AS3 language. I would like to pass
additional parameters to a function from an EventListener (or other
events). I have tried variations of:
button.addEventListener (MouseEvent.CLICK, stringParam,
intParam, functionName);
function functionName(e:MouseEvent,str:String,i:int)
I receive coercion of value or expecting boolean...
Can this be done or have I not supplied the correct
order?

no, you can't do that.
you could create your own class to extend your
interactiveobjects and pass additional parameters in your custom
mouse handlers, but it's even easier, in your situation, to use
movieclips to dispatch your mouse events and define whatever
properties you need to use in functionName() as movieclip
properties and retrieve them using
MovieClip(e.currentTarget).whateverProperty.

Similar Messages

  • Pass additional parameters to AII

    Hi,
    Is it possible to pass additional parameters for Serial Number Request through Name Value pair in a xml? If so then please cite an example.
    The scenario requirement is 3rd party non SAP systems will be requesting Serial Numbers from AII via SAP XI. However additional parameters will also be sent in Name Value pair for certain validations by SAP XI.

    no, you can't do that.
    you could create your own class to extend your
    interactiveobjects and pass additional parameters in your custom
    mouse handlers, but it's even easier, in your situation, to use
    movieclips to dispatch your mouse events and define whatever
    properties you need to use in functionName() as movieclip
    properties and retrieve them using
    MovieClip(e.currentTarget).whateverProperty.

  • Passing additional parameters to StreamingURLResource breaks

    There does not appear to be a way to pass additional URL parameters to a streamingURLResource request - Either that or I'm just doing it wrong.
    I can connect to and stream from a public cloudfront distribution. Connecting looks like this:
    var source:String = rtmp://szjv9xu7bkm2jx.cloudfront.net/cfx/st/my_video_file";
    var resource:StreamingURLResource = new StreamingURLResource(source, StreamType.RECORDED, NaN, NaN, null, true);
    mediaElement = mediaFactory.createMediaElement(resource);
    mediaContainer.container.addMediaElement(mediaElement);
    And the resulting NetConnection call looks like this:
    [org.osmf.net.NetNegotiator] Attempting connection to rtmp://szjv9xu7bkm2jx.cloudfront.net/cfx/st
    This works just fine. However, I want to protect my content, so I've enabled private streaming, which requires signed URLs to stream content. I'm attempting to pass in the generated signed URL like so:
    var source:String = rtmp://szjv9xu7bkm2jx.cloudfront.net/cfx/st/my_video_file?Expires=129000000&Signature=CPXwp8HdWu4TLBTmEi2XfKqqSuYJbo6IrGnFu0eFDgkcu6~CuAJJb8eOxYC9~aPdBI3~tgzvxo3SaC1C30qfSEv8wlSpmG6EW10zLU50OI0uakRIvpoCsFRI2Gx3XSM7iOq~IABF0~SAIZ86KtuwiolFj0Rx~qlmyTKLqyD3nNI_&Key-Pair-Id=APKAI5FAYIVANJF3WD4R";
    var resource:StreamingURLResource = new StreamingURLResource(source, StreamType.RECORDED, NaN, NaN, null, true);
    mediaElement = mediaFactory.createMediaElement(resource);
    mediaContainer.container.addMediaElement(mediaElement);
    However, this results in the following output from NetNegotiator:
    [org.osmf.net.NetNegotiator] Attempting connection to rtmp://szjv9xu7bkm2jx.cloudfront.net:443/cfx/st?Expires=129000000&Signature=CPXwp8HdWu4TLBTmEi2Xf KqqSuYJbo6IrGnFu0eFDgkcu6~CuAJJb8eOxYC9~aPdBI3~tgzvxo3SaC1C30qfSEv8wlSpmG6EW10zLU50OI0uakR IvpoCsFRI2Gx3XSM7iOq~IABF0~SAIZ86KtuwiolFj0Rx~qlmyTKLqyD3nNI_&Key-Pair-Id= APKAI5FAYIVANJF3WD4R
    The StreamingURLResource apparently appends the additional data to the NetConnection connect call? Perhaps I'm missing something obvious here, but it seems as though the StreamingURLResource should consider anything after the application instance to be a part of the stream name, not part of the connection URL. Is there some other method for ensuring that the additional params come with the stream name and not the NetConnection?

    Another update - the query params that are passed with a StreamingURLResource and appended to the NetConnection connection URL are ALSO appended to the stream name. I cannot see a case where query parameters passed into a resource should be appended to both a NetConnection URL and a NetStream URL - is there something that I am missing? The query string is added to the stream name in org.osmf.net.NetStreamUtils.as (Line 63):
    // Add optional query parameters to the stream name.
    if (fmsURL.query != null && fmsURL.query != "")
         streamName += "?" + fmsURL.query;
    My guess is that adding the query to the NetConnection (as I've shown in an above comment) is not usually desired?
    At any rate, I managed to make this work by subclassing the NetConnectionFactory class. All I really wanted to do was remove the lines that append the query string to the NetConnection (415-419), but since a few things seems arbitrarily marked as private (why?), a bit more was required. Hope this helps anyone else with the same issue:
    package com.readyforce.net
         import org.osmf.net.NetConnectionFactory;
         import org.osmf.net.NetConnectionFactoryBase;
         import org.osmf.net.PortProtocol;
         import org.osmf.net.FMSURL;
         import org.osmf.utils.URL;
         public class CloudFrontPrivateNetConnectionFactory extends NetConnectionFactory
              public function CloudFrontPrivateNetConnectionFactory()
                   super();
              override protected function createNetConnectionURLs(url:String, urlIncludesFMSApplicationInstance:Boolean=false):Vector.<String>
                   var urls:Vector.<String> = new Vector.<String>();
                   var portProtocols:Vector.<PortProtocol> = buildPortProtocolSequence(url);
                   for each (var portProtocol:PortProtocol in portProtocols)
                        urls.push(buildPrivateConnectionAddress(url, urlIncludesFMSApplicationInstance, portProtocol));
                   return urls;
              private function buildPrivateConnectionAddress(url:String, urlIncludesFMSApplicationInstance:Boolean, portProtocol:PortProtocol):String
                   var fmsURL:FMSURL = new FMSURL(url, urlIncludesFMSApplicationInstance);
                   var addr:String = portProtocol.protocol + "://" + fmsURL.host + ":" + portProtocol.port + "/" + fmsURL.appName + (fmsURL.useInstance ? "/" + fmsURL.instanceName:"");
                   return addr;
              private function buildPortProtocolSequence(url:String):Vector.<PortProtocol>
                   var portProtocols:Vector.<PortProtocol> = new Vector.<PortProtocol>;
                   var theURL:URL = new URL(url);
                   var allowedPorts:String = (theURL.port == "") ? DEFAULT_PORTS: theURL.port;
                   var allowedProtocols:String = "";
                   switch (theURL.protocol)
                        case PROTOCOL_RTMP:
                             allowedProtocols = DEFAULT_PROTOCOLS_FOR_RTMP;
                             break;
                        case PROTOCOL_RTMPE:
                             allowedProtocols = DEFAULT_PROTOCOLS_FOR_RTMPE;
                             break;
                        case PROTOCOL_RTMPS:
                        case PROTOCOL_RTMPT:
                        case PROTOCOL_RTMPTE:
                             allowedProtocols = theURL.protocol;
                             break;
                   var portArray:Array = allowedPorts.split(",");
                   var protocolArray:Array = allowedProtocols.split(",");
                   for (var i:int = 0; i < protocolArray.length; i++)
                        for (var j:int = 0; j < portArray.length; j++)
                             var attempt:PortProtocol = new PortProtocol();
                             attempt.protocol = protocolArray[i];
                             attempt.port = portArray[j];
                             portProtocols.push(attempt);
                   return portProtocols;
              private static const DEFAULT_PORTS:String = "1935,443,80";
              private static const DEFAULT_PROTOCOLS_FOR_RTMP:String = "rtmp,rtmps,rtmpt"
              private static const DEFAULT_PROTOCOLS_FOR_RTMPE:String = "rtmpe,rtmpte";
              private static const PROTOCOL_RTMP:String = "rtmp";
              private static const PROTOCOL_RTMPS:String = "rtmps";
              private static const PROTOCOL_RTMPT:String = "rtmpt";
              private static const PROTOCOL_RTMPE:String = "rtmpe";
              private static const PROTOCOL_RTMPTE:String = "rtmpte";

  • Filereference pointing to a cfc method, passing it additional parameters

    hi all
    is it possible for someone to show a script which demonstrate how a filereference can point to a cfc function (and pass aditional parameters...) ?
    it would REALLY help some of us
    cheers
    cosmits

    HI
    GOOD
    GO THROUGH THIS LINK
    http://www.abapforum.com/forum/viewtopic.php?t=1962&language=english
    THANKS
    MRUTYUN

  • Issues passing drillthrough parameters from a multi-level tablix in SSRS 2008 R2

    Hello,
    I am really struggling with trying creating a drillthrough report that starts with a matrix (tablix)  and passing those  parameters. I am using SSRS 2008 R2.
    Here's my scenario:
    I have a matrix that has mulitple levels where you can drill down. Here an example with all the levels open:  
    Active
    Term
    Leave
    Total
    128
    88
    121
    United States
    110
    80
    85
    New York
    65
    30
    57
    Manhattan
    10
    6
    9
    Buffalo
    20
    23
    4
    Albany
    35
    1
    44
    Texas
    45
    50
    28
    Dallas
    40
    30
    22
    Houston
    5
    20
    6
    France
    18
    8
    36
    Centre
    18
    8
    36
    Blois
    7
    2
    8
    Druex
    6
    1
    15
    Tours
    5
    5
    13
    I want to drillthrough to another report - Detail Report. As I understand it, I would click the 65 for New York and I would see the detail for the 65 Active people. If I click the 2 under Blois, I would see the 2 terminated people in Blois. My understanding
    for this to work, the Detail Report would need a a parameter for each of the level possibilities in the matrix that I could click: Country, State, City as well as the Status (Active, Term, Leave).
    While I understand about passing parameters, what I don't understand is how to pass the parameters if they are blank. Let's say I clicked 65 for New York, I would need to pass State = New York  Status = Active. But the remaining parameters (Country
    and City  would be null). I know Country doesn't need to be Null in this case.
    My Detail Report has the parameters defaulted to Null, but whether I put the parameters in a Filter for the dataset or in the query itself, I cannot get it to ignore the Nulls.
    As a crazy work-around (I think) I can put in the Where of the query  something along the lines of: this:
            and (a.Country in (@paramCountryCode) or NULL  in (@paramCountryCode) )
    and I would need to do that for each parameter. Usually I have to use 'ALL' instead of NULL, I'm note sure why.
    Additionally, in the Report Action of the Main Report, I need to pass those parameters for each level and their Status. I am also not clear whether or not I need to put in all the parameters on each of the levels (Country, State, City) of the matrix. And if
    I do, do I need to make the expressions an IIF statement stating whether or not they are In Scope?
    All the examples I was able to find, only showed one or maybe two parameters being passed. Doing the way I am trying, seems convoluted, error-prone and tedious. I really hope that I am wrong.
    Is there a better way to approach drilltrough reports from a matrix when there are multiple levels?
    Thank you for the help.
    ~J

    Hi Jenna_Fire,
    According to your description, you have a matrix contains total for each group on each level. Now your requirement is, when you click on any number (data field or total), it will go to the detail report which returns all the detail information of the people
    within the group scope. For example, if you click on the total of Active users in United States, it will return the detail information of Active users in New York and Texas. Right?
    In this scenario, we should set the parameter (@Country, @State, @City) allow multiple values in both main and detail report. And in Default Value (@Country, @State, @City), query out all distinct values. In the textbox which contains
    those total values, when set use these parameters to run the report, we only need to pass the parameters of parent groups. For example, if we click on the total of Active users in New York, we only need to pass Country, State, Status to detail report, and
    in the detail report, the City parameter will use all distinct values (Default Values) because we don't pass the City parameter. We have tested this case with sample data in our local environment. Here are steps and screenshots for your reference:
    1. Create parameter Country, State, City and Status in both main report and detail report. Set both Available Value and Default Value get values from query (Create a dataset for each parameter, use "select distinct [column] from [table]" as query). Set allow
    multiple values for parameter Country, State and City in both reports.
    2. In corresponding textbox, pass appropriate parameters in go to report Action.
    4. Filter data in detail report (in where clause or using filters).
    5. Save and preview. It looks like below:
    Reference:
    Using Parameters to Connect to Other Reports
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Possibility to transfer additional parameters in outbound XML message

    Hi,
    is there any possibility to transfer additional parameters in outbound XML message using (BADI: BBP_SAPXML1_OUT_BADI).
    Additional parameters are,
    1. Communication Method for the Business Partner
    2. R/3 Vendor # & logical system for Business Partner
    3. Relationship between Business Partner Number and R/3 Vendor Number is ‘BP GUID’.
    How can we extended the structure in the BADI.
    Please give me qucik response.
    Thanks & Regards.
    Surya

    Look for structure which the interface parameters are referring, there you should see some dummy structures referring to INCL_EEW* for e.g. in PO header INCL_EEW_PD_HEADER_SSF_PO. Add additional fields and pass the data accordingly.
    Regards, IA

  • Passing multiple parameters between two report portlets on the same page

    Hi,
    I want to pass multiple parameters between two report portlets on the same page.
    I have been succussful passing a single parameter between two portlets. The
    following are the steps :
    (1) Created first report based on the query
    SELECT htf.anchor('http://192.168.0.84:7778/servlet/page?&_pageid=97&_dad=portal30&_schema=portal30&_mode=3&dept_code='||DEPTNO,DEPTNO) Department, ename FROM EMP;
    (2) Created 2nd report
    select * from EMP where DEPTNO = :dept_code
    (3) Added pl/sql code before display page on the 2nd report
    portal30.wwv_name_value.replace_value(
    l_arg_names, l_arg_values,
    p_reference_path||'.dept_code',portal30.wwv_standard_util.string_to_table2(nvl(g
    et_value('dept_code'),10)));
    (4) Created a page and added these reports as portlets.
    Sofar it works fine for one parameter (deptno) . Now I want to add one more
    parameter say empno to my first report query and would like to pass both the
    parameters deptno and empno to the 2nd report. Please tell me how to pass multiple parameters ?
    Thanks
    Asim

    Hi,
    You will have to do the same thing
    The select will be like this
    SELECT htf.anchor('http://toolsweb.us.oracle.com:2000/servlet/page?_pageid=97&_dad=mb&_schema=mybugs&_mode=3&dept_code='||DEPTNO||'&empno='||empno,DEPTNO) Department,ename
    FROM EMP
    In the additional plsql code do the same for empno like this
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.dept_code',mybugs.wwv_standard_util.string_to_table2(nvl(get_value('dept_code'),10)));
    mybugs.wwv_name_value.replace_value(l_arg_names,l_arg_values, p_reference_path||'.empno',mybugs.wwv_standard_util.string_to_table2(get_value('empno')));
    Thanks,
    Sharmila

  • Passing in parameters to Data Instance

    Hi
    I read in OSM 7.2 Release Notes on vf:instance :
    You can now add explicit parameter values from within an XQuery or XPath that
    augment or override the parameters defined in the OSM data dictionary using
    vf:instance()
    My question is, how do I make use of the parameters passed in in my Data Instance?
    The example given in Developer's Guide says:
    log:info($log,local-name(
    vf:instance($order/oms:GetOrder.Response/oms:_root/oms:data[1],'DataInstance',<oms:url>file://us/catalog.xml</oms:url>)/*[1]
    How do I make use of parameter oms:url in the Data Instance?
    I tried using ${oms:url} but it gives me compile error.
    I created a new namespace for the data instance to obtain the passed in parameters. Is this the correct way?
    the xquery to invoke the data instance:
    let $dataInstanceParams := <m1:params xmlns:m1="http://xxx.com/bcc/osm/com/orderopco/xml">
    <m1:OMGroupRefID>{fn:normalize-space(im:MainOrderLineItem[0]/im:OMGroupRefID/text())}</m1:OMGroupRefID>
    <m1:ActionCode>{fn:normalize-space(im:MainOrderLineItem[0]/im:ActionCode/text())}</m1:ActionCode>
    </m1:params>
    let $dboutput2 := vf:instance('CheckProductGroupExists',$dataInstanceParams/*)
    adapter is JDBC adapter, built-in.
    My Data Instance Behavior's oms:sql is:
    <query xmlns:im="http://xxx.com/bcc/osm/com/orderopco">
    <sql>
    select opg_ref_id from C_OM_OPG_MAP
    where om_product_group='{$OMGroupRefID}'
    and action_code='{$ActionCode}'
    </sql>
    </query>
    Thanks.
    Will
    Edited by: will.s on Dec 10, 2012 6:01 PM added xquery to invoke the data instance

    Hi Will;
    The DatabaseAdapter expects input parameters to be named "in:1", "in:2", "in:3" and so-on. The numbers 1, 2, 3, etc. correspond to the position of the ? entry in your SQL parameter. in:1 would be used as the value for the first ? in your sql, in:2 would be used as the value for the second ? and so-on.
    So based on this, your xquery would need to be something like this:
    let $dataInstanceParams := <m1:params xmlns:m1="http://xxx.com/bcc/osm/com/orderopco/xml">
    <in:1>{fn:normalize-space(im:MainOrderLineItem[0]/im:OMGroupRefID/text())}</in:1>
    <in:2>{fn:normalize-space(im:MainOrderLineItem[0]/im:ActionCode/text())}</in:2>
    </m1:params>
    let $dboutput2 := vf:instance('CheckProductGroupExists',$dataInstanceParams/*)
    We don't care what the namespace is that you use, but the namespace prefix must be "in:".
    For your reference, I'm copying below the full text of the Javadocs for the DatabaseAdapter. You can find the docs for this and other adapters in the OSM SDK Javadocs.
    This class implements a View Framework external instance adapter that executes a SQL statement and builds an XML document based on the result set.
    There are two mandatory parameters for this class, oms:sql and oms:dataSource.
    oms:dataSource: Refers to the jndi name of a JDBC datasource defined in WebLogic. For example 'mslv/oms/oms1/internal/jdbc/DataSource'
    oms:sql: Contains the sql that will be sent to the database. For example 'select * from scott.emp where empno=?'
    Additional optional input parameters may be supplied that will be bound to parameters defined in the oms:sql value. For example, in the above sql statement a parameter is used to define the value for 'empno' in the where clause. A value for this parameter may be specified by defining a paremter called "in:1". If there were additional input parameters defined in the sql statement, these could be passed as "in:2", "in:3" and so on.
    In all cases these input parameters will be assumed to be string values and bound to the sql statement as string values.
    The following is an example of using the DatabaseAdapter to invoke a query:
    <instance name="well_paid_salesman" xsi:type="externalInstanceType">
    <adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
    name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
    name="oms:sql">"select * from scott.emp where job='SALESMAN' and sal > ?"</parameter> <parameter
    name="in:1">1250</parameter> </instance>
    The above declaration returns the following XML instance:
    <results> <rowSet> <row> <empno>7499</empno> <ename>ALLEN</ename> <job>SALESMAN</job> <mgr>7698</mgr>
    <hiredate>1981-02-20 00:00:00.0</hiredate> <sal>1600</sal> <comm>300</comm> <deptno>30</deptno> </row> <row>
    <empno>7844</empno> <ename>TURNER</ename> <job>SALESMAN</job> <mgr>7698</mgr> <hiredate>1981-09-08
    00:00:00.0</hiredate> <sal>1500</sal> <comm>0</comm> <deptno>30</deptno> </row> </rowSet> </results>
    The DatabaseAdapter can also be used to execute SQL stored procedures.
    The DatabaseAdapter provides a stored procedure SQL escape syntax that allows stored procedures to be called in a standard way for all RDBMSs. This escape syntax is defined as part of the Java JDBC API.
    This escape syntax has one form that includes a result parameter and one that does not. If used, the result parameter must be registered as an OUT parameter. The other parameters can be used for input, output or both. Parameters are referred to sequentially, by number, with the first parameter being 1.
    {?= call [,, ...]}
    {call [,, ...]}
    Values for input parameters to the stored procedure are specified using the in:1, in:2 (etc.) parameters in the same way as they are for regular SQL queries.
    Output parameters are specified using out:1, out:2 (etc.). Keep in mind that the parameter number (1, 2, 3, etc.) are numbered sequentially from 1 ordered from left to right in the specified SQL statement including both input and output parameters.
    The value of the parameter is the parameter SQL type (see http://java.sun.com/j2se/1.4.2/docs/api/java/sql/Types.html for a list of types).
    The following example illustrates how to call a database stored procedure that has one output parameter (the result of the stored procedure call), and one input parameter.
    <instance name="lock_count" xsi:type="externalInstanceType">
    <adapter>com.mslv.oms.view.rule.adapter.DatabaseAdapter</adapter> <parameter
    name="oms:dataSource">'mslv/oms/oms1/internal/jdbc/DataSource'</parameter> <parameter
    name="oms:sql">"{? = call om_cartridge_pkg.get_any_cartridge_id('my_cartridge',?)}"</parameter> <parameter
    name="out:1">'INTEGER'</parameter> <parameter name="in:2">'1.1'</parameter> </instance>
    The above declaration returns the following XML instance:
    <results> <outputParameter number="1">1234</outputParameter> </results>

  • Maintain Blanks in SXPG_COMMAND_EXECUTE additional parameters

    Hello guys,
    we are trying to execute some commands in a Z function calling the function SXPG_COMMAND_EXECUTE.
    We have a command Z and in the additional parameters and we fill the command with CMD('COPY T:
    Documents
    PXXX2
    IEXXX.DOC \"E:
    WORK
    600613 MATERIAL     100333 (12345)\" ').
    We want to maintain the blanks, but during the execution of function SXPG_COMMAND_EXECUTE a CONDENSE of the field additional parameters is done.
    There is any way to maintain the blanks calling this function? There is another function that also executes commands and maintain the blanks?
    Many thanks in advance.
    Regards,
    Xavi.

    Hi,
    thanks for the answer. But thats doesn't match my problem. What I want is to start a shell-script with parameter whereas some parameters might include one or more blanks. Like for examples a script with only one parameter:
    shell-script 'this is a parameter'
    What I found out while testing with SM49 is, when I put the parameter into apostrophe than the parameter is passed as a single parameter to the script. But SM49 elsewell SXPG_COMMAND_EXECUTE condense more than blank to only one blank. And the apostrophe remain in the parameter.
    SM49:
    shell-script 'This   is a parameter'
    The shell-script gets the parameter 'This is a parameter' , whereas the apostrophe ' and the start and at the end is part of the parameter.
    Using the function modules SXPG_RFCDEST_OPEN_INT, SAPXPG_START_XPG and SAPXPG_END_XPG instead of SXPG_COMMAND_EXECUTE solves the problem of condensing the blanks to one blank. But the apostrophe is still part of the parameter. And I have to consider that the apostrophe might be originally part of the parameter.
    And I have to solve this problem.
    Regards
    Karl-Wilhelm

  • Passing multiple parameters to a portlet

    Hi All,
    I have created a portlet form a taskflow, and using the WSRP Producer connection I am adding this portlet into a new application's JSF page.
    1. Is it possible to create a portlet that can accept multiple parameters?
    2. is it possible to map a portlet method to a method in new app.
    3. is there some implicit event that can be passed when all of the parameters are passed to the portlet.
    What my requirement is:- I have to send some 4-5(String) parameters from the new application to the portlet application.
    what would be the sequence in which the setters of this parameters would be called in the Portlet app?
    can you please tell me if this is possible, and how to do it. Some tutorial would help.
    Regards,
    ND

    Your question is WebCenter related and you should ask it in the forum {forum:id=354}.
    Anyway, you can pass multiple parameters to a portlet. Define the parameters as parameters of the corresponding bounded TaskFlow. When the taskflow is wrapped as a portlet producer by the JSF Portlet Bridge all the taskflow parameters will be exposed as separate navigational portlet parameters. If you consume the portlet at some page, then the portlet parameters will be bound to PageDef variables and you can use these variables to pass parameter values to the portlet. If you have to re-send new parameter values at runtime, just set the corresponding pageDef variables and refresh the <adfp:portlet> tag by PPR. Do not forget to mark the portlet's region binding in the PageDef as RefreshIfNeeded, otherwise it will not get the new values and will not refresh.
    Look at the following article in the documentation about using navigational parameter for contextually linking of portlets:
    http://download.oracle.com/docs/cd/E14571_01/webcenter.1111/e10148/jpsdg_pages.htm#CHDJABHD
    If you have additional questions, please ask them in the WebCenter forums.
    Dimitar

  • Passing mulitple parameters to unix shell script via File adapter

    Hi,
    I have the following usecase.
    I have a set of files A, B, C, D  etc in a directory dir.  I also have a EOT ( end of transaction file).
    I need to merge this file once the EOT file is present in XI application server (  using NFS with File adpter).
    I have a script which can take the following paramters:
    1. EOT file name
    2. File names for A,B,C,D
    3. Directory names.
    Is it possible to send muliple parameters to the unix script from the File adapter?
    please share any blogs which do so.
    Thanks in advance,
    Best Regards
    Abhishek

    Hi,
    You can always call script from file adapter using "OS command" functionality, pass additional parameter like you do in unix for existing script (exact command which you type on unix prompt).
    Adapter will simply pass your OS command to operating system, so from XI point of view nothing is changed and it is your script which should take care of parameters.
    Regards,
    Gourav

  • Problem with passing date parameters in cursor

    Is there any problem in passing date parameters and like clause as below
    CURSOR eftcursor(start_date DATE, end_date DATE, where_clause varchar2) IS
    select * from r_records
    where created_date between start_date and end_date and description like where_clause;
    and in the open statement
    select to_date('01/06/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into startDate from dual;
    select to_date('01/07/2010 00:00:00', 'dd/mm/yyyy hh24:mi:ss') into endDate from dual;
    str := '%something%aaaaa%';
    open eftcursor(startDate ,endDate , str);
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.

    Almora wrote:
    Do i need to do any kind of conversion in the cursor where clause or when i am passing the parameter in open statement.No, your code looks correct -- ou're passing a date to the cursor.
    You might consider whether you really need an explicit cursor though. An implicit cursor is easier to code and performs better.

  • What is the better way to pass input parameters between components?

    Hi all,
    I had a dispute with a colleague about passing data between different WDP Development Components. The situation is like this:
    Colleague has a SearchWDP (parent) und I have a BrowseWDP (child). After searching for some objects and clicking a hit in the SearchWDP, the corresponding details should be shown in BrowseWDP, via passing a bunch of parameters such as selected item's id, etc.
    Now which of the following is the better practice:
    - Defining a node in BrowseWDP (child) with isInputParameter set to TRUE, creating a similar node from the same type (simply via ModelBinding, both WDPs are using the same model) in SearchWDP, and defining a mapping between them so that SearchWDP fills the input nodes. From BrowserWDPs perspective, I'd call this Pull method.
    or...
    - Defining a node in BrowseWDP (child) with isInputParameter set to FALSE, creating a setter method in BrowseWDP Interface Controller for the collection (to be passed as parameters) and calling a wdContext.nodeBlaBla().bind(pInputParameterFromModelType). From BrowserWDPs perspective, I'd call this Push method.
    The colleague's argumentation in favor of Push has not convinced me at all and I'd like to ask your opinions. Is there a best practice or recommendation for this scenario? TIA
    ps: Any answer will be rewarded.

    Hi Cuneyt,
    Refer the links below, they are very informative!
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/15a441cd47a209e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/content.htm
    These links are a part of the WebDynpro ABAP documentation, but the concepts are same for WDA and WDJ.
    Considering your scenario, I would recommend the first alternative you have mentioned (if you refer the second link its called External Context Mapping), where component controller context node of component A (SearchWDP) is the source for Interface controller context (same name) of component B (BrowseWDP).
    Thanks.
    Chitrali

  • Passing URL parameters to PL/SQL Pages

    Hi,
    I want to pass parameters from url to the PL/SQL page . How is this possible?
    http://myserver/pls/portal/url/PAGE/page_group/page/testplsqlpage?course_ref=##COURSE_ID##&staff_ref=##STAFF_ID##
    I will to received course_ref and staff_ref in the PL/SQL page and pass the values to SQL query so that its filtered.
    Can pls anyone guide me? If there is any alternate way or there is sample code pls let me know
    Many Thanks
    Ganesh

    Hi Mick,
    Thanks for your reply. However my problem is still not resolved.
    I have created a Omniportlet with lists the staff details. When I click on the staff link I am passing to parameters as follows
    http://servername/pls/portal/url/PAGE/CCM_MIS_PORTAL/TUTOR_HOME/Course_Info?Param1=10017031/M2523&Param2=001434
    on the receving page I have a omni portlet which must receive these 2 parameters and pass it on to the query and filter the results.
    On the received page I have created 2 page parameters (Param1 and Param2)
    I have assigned these 2 paramaters to the portlet paramers through page parameters' section
    on the omni portlet in the query I have created 2 bind variables (p1, p2) and the default value of the bind variable is set using ##Param1## and ##Param2## so the received values from page is passed to to bind variable and hence to the query.
    However the omni portlet is not received the parameters and I can not figure out whats wrong?
    Is there any problem with my URL (guide says I should use relative URL)
    Please help

  • How does one pass import parameters to a report within a method?

    Hello all,
    Well how does one  pass import parameters to a report which is within a method ...end method.
    for example :
    method 123
    SUBMIT reportname using selection '1000'
    endmethod .
    Here we need to pass values into the selection screen and run the report for those values.
    The values are say 'ABC'   (  tablename "DEF" and field name "HIJ" ).
    I hope the question is clear, awaiting your response 
    Thanks and Regards,
    Sandeep.

    Go to SE24
    Parameters: Give the Parameter name, Typing method is "Type" is the domain type that u are selecting, say for e.g :  Parameter is "P_CONT" , its associated type "CHAR32" etc
    For Select Options:  Parameter name say "S_CUST", Type"importing". For this you need to give an associated type which must be created as "TABLE TYPE " in SE11. That table type needs to have a "LINE TYPE" .
    LINE TYPE is a Structure created with components "SIGN, OPTION, LOW & HIGH" for select-Options.
    NOTE: for a Table type related to Customer data fields "say KUNNR", the line type created must have the Component Type and data Type corresponding to the Data Element associated with "KUNNR" ;i.e: "CHAR" etc.
    See if this is clear to you or revert back in case of any Confusion.

Maybe you are looking for

  • Unable to get Phone Dialer working

    Hello everyone, I have setup a brand new client. And I am unable to get the dialer working correctly. I have followed the directions here: Re: The Top10 most frequently asked questions and answers (FAQ) January 2009 - Telephony service is started - W

  • Set Session State with Shuttle items

    Is it possible to have session state set with each item selected in a shuttle? You have a shuttle with 4 possible options, you select item 2 from the left portion of shuttle and it is moved to the right.. Can you set the session state at that point?

  • Using Save As from Applications...

    I've noticed that whenever I try to save a document or file from an application with the "save as" function, I get limited choices of where to put the file. For example it might show the "documents" folder, but it will not show any of the sub folders

  • Browser page view

    How can I set the page view, in the browser, to be column view? Some pages are set to page view, but I want to set them all to column.  I used to have a Curve and it gave you the option for page or column view. Is it possible with the Style?

  • I need help trying to get my email address

    I need my email address to my skype name brittany.cifers1. I havent logged in a long time so i dont remember any of it