How to specify ServerSide event type (with Naming Containers) in a function

I have a java script function ...
function clientMethod(event) {
component = event.getSource();
AdfCustomEvent.queue(component, "generateEvent",{},true);
event.cancel();
My jspx Page has
<af:pageTemplate viewId="/templates/MyMainTemplate.jspx" id="maintmpl">
<af:table varStatus="rowStat" id="devTable">
<af:column>
<af:activeOutputText value="#{row[name]}" id="NameLink" clientComponent="true">
<af:clientListener method="clientMethod" type="click"/>
<af:serverListener type="generateEvent" method="#{MyBean.linkListener}"/>
</af:activeOutputText>
</af:column>
</af:table>
</af:pageTemplate>
But once the output Text is clicked the control doesn't come to the method in my bean.( MyBean)
My doubt is in the line " AdfCustomEvent.queue(component, "generateEvent",{},true); "--->as my "_maintmpl_" as well as "_devTable_" are
naming containers.
How should AdfCustomEvent.queue(component, "generateEvent",{},true); be given...??
1)AdfCustomEvent.queue(component, "main:tmpl:generateEvent",{},true); or
2)AdfCustomEvent.queue(component, "maintmpl:devTable:generateEvent",{},true); or
anything else...
Or Is there anything else I need to do??
Please help me out with this..in identifying the problem
Thanks and regards,
Jags

Hi,
the server listener name is a type, not an ID. Its a listener that is set up on the client to respond to a specific event. So the naming container should not matter. Does it work when you move the content out of the table? chances are that the code doesn't work because of the stamping behavior that is used to render the table.
Frank

Similar Messages

  • How to create a Sales order with ref to Contract using Function Module

    How to create a Sales order with ref to Contract using Function Module BAPI_SALESDOCU_CREATEFROMDATA ?

    We have a unique situation where we like change the sold-to customer of the sales order
    once order has been created. These orders have been created using either by function module
    BAPI_SALESDOCUMENT_COPY or using BDC (VA01, Copy with reference).
    These two processes work abosolutely fine except someone might have change the sold-to
    customer of the ship-to customer of the original sales order. If this the case then the new
    sales order will be created with the old sold-to and with not the new sold-to.
    We tried using BAPI_SALESDOCUMENT_CHANGE and commit afterwards. We checked
    the returned parameteres of the BAPIs and they are all successful but sold-to remains the
    same old one.
    Any help would be much more appreciated.

  • How to Create Custom Content Type with 100 site columns ?

    Hi EveryOne,
    i have one requirement to create custom conten types in sharepoint 2013 as follows.
    1. Create a content type with 100 site columns ( in this 100 site columns includes 10 mms feilds and 10 lookup fields).
    2.when we deploy the content type in other server if already the same content type existing in the server it should be upgrade the existing content type.
    Please advise how do develop the solution ( using power shell script or visual studio with event receiver or xml file)
    Regards,
    Srinivas

    Try below:
    http://www.mindfiresolutions.com/Add-Columns--Fields-Programmatically-to-a-SharePoint-List-282.php
    using(SPSite
    oSPsite = new SPSite("http://Web-URL"))
        oSPsite.AllowUnsafeUpdates =
    true;
    using (SPWeb oSPWeb = oSPsite.OpenWeb())
            oSPWeb.AllowUnsafeUpdates =
    true;
    /* get the SPList object by list name*/
    SPList lst = oSPWeb.Lists["EmpList"];
    /* create a Numeric field for EmpID */
    SPFieldNumber fldEmpID = (SPFieldNumber)lst.Fields.CreateNewField(
    SPFieldType.Number.ToString(),
    "EmpID");
            fldEmpID.Required =
    true;
            fldEmpID.DisplayFormat =
    SPNumberFormatTypes.NoDecimal;
    /* create a Text field for Name */
            SPFieldText fldName = (SPFieldText)lst.Fields.CreateNewField(
    SPFieldType.Text.ToString(),
    "Name");
            fldName.Required =
    true;
            fldName.MaxLength = 50;
    /* create a Date field for Dob*/
    SPFieldDateTime fldDob = (SPFieldDateTime)lst.Fields.CreateNewField(
    SPFieldType.DateTime.ToString(),
    "Dob");
            fldDob.DisplayFormat =
    SPDateTimeFieldFormatType.DateOnly;
    /* create a Currency field for Salary */
            SPFieldCurrency fldSal = (SPFieldCurrency)lst.Fields.CreateNewField(
    SPFieldType.Currency.ToString(),
    "Salary");
            fldSal.Currency =
    SPCurrencyFieldFormats.UnitedStates;
            fldSal.DisplayFormat =
    SPNumberFormatTypes.TwoDecimals;
    /* add the new fields to the list */
            lst.Fields.Add(fldEmpID);
            lst.Fields.Add(fldName);
            lst.Fields.Add(fldDob);
            lst.Fields.Add(fldSal);
    /* finally update list */
            lst.Update();
            oSPWeb.AllowUnsafeUpdates =
    false;
        oSPsite.AllowUnsafeUpdates =
    false;
    If this helped you resolve your issue, please mark it Answered

  • How to See Business Event Types in Appraisals

    Hi Gurus,
    How can we fetch the Business events maintainined in Business Event Catalog in Training & Event Management in the input field for a criteria in Performance Appraisal Template maintained in PD
    Thanks & Regards
    Rajesh

    Hi,
    Exact process is:
    BEG                 (L)
          BET            (D)
    (course)BE        (E),
    You booked the attendance to business event type. That booking date is called Bsuiness event.
    You will not get any information about the Business event, check the PP01 select the course then give your course(E) no: .
    You maintained business events to business types. Check the PSV1 and PSV2. You will get the business events.
    Input field for a criteria in Performance Appraisal Template maintained in PD -
    . I donot understand what is this.
    Regards
    Devi.

  • How to use a event structure with a state machine

    First, I would like to inform you that I only work on LabView part time, and have much to learn.  Anything I do learn, I usually forget until I need it again, because I only work on it part time.
    Using your StopWhileLoopMOD[1].vi, I am trying to put a state machine inside the event structure.  
    Related link: http://forums.ni.com/t5/LabVIEW/How-to-stop-while-loop-in-Event-case/td-p/465564/page/2
    Here is my application:  on the front panel, the user can select any combination of 7 different tests.  I have created cases to perform each step of each test in the correct order, but if the user presses stop, the tests won't stop because some of the cases have a while loop inside the event structure (like you mentioned is a bad idea).  The user should be able to stop the test, reselect tests to perform, and re-start the tests. 
    When the start button is pressed for the event structure, I need all the cases to run in the proper order, unless stop is pressed.
    In the past I have indexed an array and used that to run the state machine, but it won't stop immediately.  
    I have sub VIs that are built in while loops because the outputs of the product needs time to stabilize.  The state machine stops and waits up to a certain number of iterations.  If it passes the test, the while loop stops and the next state starts.  If it takes too long, it exits and reports an error.  Maybe I need to just use the state machine and not an event structure?
    Is there a good example of an event structure?
    metzler CLAD
    Solved!
    Go to Solution.

    I'm not sure exactly what you are asking, but it sounds like you want to script a bunch of tests and if the user says stop, to immediately stop the current test and abandon the others?  I'm going to assume that you know how to clear the array so that it will abandon the others, so I'm guessing that you are having trouble abandoning the current test?  If this is indeed the case, then the problem is that you are not able to propagate the message from the main VI FP which is the GUI to the sub vi which is the test, where the test may or may not have a GUI (FP visible) of it's own.  Threading was the first thing to come to mind, but this may not be necessary using events.
    You can do this by passing a refnum of the stop button to the subVI, where you can then add that wait to the event case structure.
    I've attached 2 VIs, mainvi.vi which is just a loop displays the count*2 (number of seconds passed since running) that will call subvi.vi and then check to see if the stop button is pressed.  mainvi.vi is by no means a state engine, it is just a simple loop for demonstration purposes.  subvi.vi just waits 2 seconds and leaves, it is a better structured state engine with an init state to start a poll case to wait for events and an exit state to clean up.  You can modify this any way you wish to get it to do what you want.  You will note that even if subvi.vi is being executed, it will terminate immediately when the stop button is pressed.
    Hope this helps.
    A
    Attachments:
    mainvi.vi ‏17 KB
    subvi.vi ‏33 KB

  • How to create an event marker with durations of upto 10mins

    Hi,
    I want to record the time of an event, occuring on the acquired data or a user generated keyboard event, since the start of a recording sessions. A typical session of record will take 10-15 mins. The timer need to start as soon as the recording is initiated and run without overflow till end of recording.
    So my two problems are:
    1. How do I create a timebase for the counter so that its TC duration will be atleast 15mins and at the same time be able to detect 10ms event.
    2. How do I connect the above timebase to 2nd counter, which will read the time of event, and read the count value and store in an array when an event occurs.
    Any help or guidelines to approach this problem will be a
    ppreciated

    Andy;
    If you are using Labview to do that, you can take advantage of the shipping example named "Measure Buffered Period.vi". You can set that counter's source to be the 100K interanl time base, and route the events line to that counter's gate pin. At each event, the counting number will be stored at the buffer, and you can keep reading those numbers. as you know the frequency of the timebase, the elapsed time will be the counting number you read, times 1/100k. As you probably don't need much accuracy on the 10minutes counter, you can do that opeartion by Software, and stop the while loop after that time has been reached.
    Hope this heslps.
    Filipe
    Applications Engineer
    National Instruments

  • How do you mix data types with Producer/C​onsumer?

    Hi,
    I am trying to build a VI using Producer/Consumer architecture and trying to learn how to do it.  I am measuring two types of data that must be used "simultaneously" to create output commands.  The attached vi is a simplified version that I am using to try to understand how the data flows before I build my much larger more complex VI. 
    I will be collecting three values in an array from a DAQ sequence, and then one single value (also from another DAQ function) in another loop, so, the two loops are labelled THREE VALUES and ONE VALUE.   The DAQ's run at different rates, so, that is the reason for the producer/consumer architecture.   I want to take each of the three values, and pair it with the most recent one value, (hence the LOSSY ENQUEUE set to max size 1) and create a serial command to be output.  (Actually, I would create 3 serial commands, one per value from the THREE loop.)
    In the attached VI, I create an array of 3 values, but, I see only one of them during execution.  I am trying to see all 4 values, but, I see only one of the THREE, and one of ONE.    I think I should see 1, 23, 44, and 99, but, I see only 44 and 99.  Where  did 1 and 23 go?  I want to be able to use (see) 1 and 23 in my consumer loop.
    Thanks
    Attachments:
    forum oct 6 2013.vi ‏17 KB

    apok wrote:
    try this...
    Spoiler (Highlight to read)
    (OP NI did you a slight disservice stating Producer Consumer vice Master Slave pattern- you need a master slave pattern)
    Close to right Apok,  A problem.  Two solutions possible:
    1)The slowest notifier needs to be waited first and have the ignore previous boolean T (Not sure which is slowest)  This "Slow Loop" then throttles the slave loop and the "Fast Loop's" notifier looses data between slow loop samples.
    2) Wait the Fast loop's notifier first. and leave both notifiers ignore previous =F  And, set the slow loop timeout to 0.  This duplicates the slow loop value for each fast loop acquisition.
    Jeff

  • How link customize IDOC message type with FM ?

    Hi,
    I have created new IDOC message type ZCOST and FM ZMASTERIDOC_CREATE_COST. (Outbound).
    Please advise how link the message type and FM ? so everytime i am executing BD21 with message type ZCOST the program always calling FM ZMASTERIDOC_CREATE_COST to generate the IDOC.
    Thank You and Best Regards
    Fernand

    HI,
    You need to link Mssage type, IDOC type and the FM (also extension idoc type if exits) in TCODE: WE57 --> go to change mode
    --> then new entries --> even you need to gove the direction inbound/outbound.
    Also you need to create a outbound custom process code in WE41. and link the FM to the process code.
    This process code shold be assigned to the partner profile in we20 in outbound parameters -> so you FM will be picked up qutomatically.
    regards,
    Nazeer
    Edited by: N a z e e r on Jul 14, 2010 3:14 PM

  • How can I associate file types with Dreamweaver so they open automatically?

    I've just installed Dreamweaver CS4 under Windows XP
    Professional but I've an issue with which files types are
    associated with Dreamweaver.
    When I first ran DW CS4 the application invited me to select
    which type of files to associate with Dreamweaver: .css, .js,
    .xslt, php, etc. I deselected a few as I was using another editor
    for those at the time. However, I would now like to associate PHP
    files with Dreamweaver CS4, so that when I double-click a PHP file
    in Windows Explorer it opens in Dreamweaver CS4.
    How can I do this?
    Is there a way to run the initial dialog box again that
    invited me to select which files to associate with Dreamweaver?
    Thanks in advance
    Gareth

    However, I would
    > now like to associate PHP files with Dreamweaver CS4, so
    that when I
    > double-click a PHP file in Windows Explorer it opens in
    Dreamweaver CS4.
    Browse to any PHP file with Windows Explorer, right click
    then select Open
    With..., Choose Program and select DW CS4 (and tick the
    "Always..." box to
    make this the default file association)
    Regards
    John Waller

  • How do you do event invites with ical

    how do you invites?
    my sons iphone can send ical event invites and when I hit edit on mine the invite thingy is not there??
    Help please

    Having the same problem.  I have iCloud setup and I have iOS 5 updated.  My girlfriend has the option to send invites with her iCal and we have our iphones synced to the same itunes.  Not sure what the issue is, and with extensive searching on the internet for the answers I've found nothing.  Let me know if you find anything Larry.  Thanks

  • How to use oracle collection type with JDBC?

    I try to use oracle collection type in java program. So I made some package and java program, however Java program was not found "package.collectiontype"(JDBC_ERP_IF_TEST.NUM_ARRAY) . please, show me how to use this.
    Java Version : Java 1.4
    JDBC Driver : Oracle Oci Driver
    DB: Oracle 9i
    No 1. Package
    ===========================================
    create or replace package JDBC_ERP_IF_TEST AS
    type NUM_ARRAY is table of number;
    procedure JDBC_ERP_IF_ARRAY_TEST(P_NUM_ARRAY IN NUM_ARRAY, ERR_NO OUT NUMBER, ERR_TEXT OUT VARCHAR2);
    procedure TEST(ABC IN NUMBER);
    END JDBC_ERP_IF_TEST;
    ==================================================
    No 2. Package Body
    ===============================================
    CREATE OR REPLACE package BODY JDBC_ERP_IF_TEST is
    procedure JDBC_ERP_IF_ARRAY_TEST(p_num_array IN NUM_ARRAY,
    ERR_NO OUT NUMBER,
    ERR_TEXT OUT VARCHAR2) is
    begin
    ERR_NO := 0;
    ERR_TEXT := '';
    dbms_output.enable;
    for i in 1 .. p_num_array.count() loop
    dbms_output.put_line(p_num_array(i));
    insert into emp (empno) values (p_num_array(i));
    commit;
    end loop;
    EXCEPTION
    WHEN OTHERS THEN
    ERR_NO := SQLCODE;
    ERR_TEXT := ERR_TEXT ||
    ' IN JDBC INTERFACE TEST FOR ORACLE ERP OPEN API..';
    ROLLBACK;
    RETURN;
    end JDBC_ERP_IF_ARRAY_TEST;
    procedure TEST(ABC IN NUMBER) IS
    begin
    insert into emp(empno) values (ABC);
    commit;
    end TEST;
    end JDBC_ERP_IF_TEST;
    ===============================================
    NO 3. Java Program
    ===============================================
    ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("JDBC_ERP_IF_TEST.NUM_ARRAY", getConnection());
    ARRAY array = new ARRAY(descriptor, getConnection(), arrs);
    cstmt = getConnection().prepareCall(LQueryFactory.getInstance().get("Meta/Basic/testJdbcErpArrayIf").getSql());
    cstmt.setArray(1, array);
    cstmt.registerOutParameter(2, Types.INTEGER);
    cstmt.registerOutParameter(3, Types.VARCHAR);
    ====================================================
    couldn't find this phase => JDBC_ERP_IF_TEST.NUM_ARRAY
    what can i do for this package and program? please help me..

    Something like this:
    create or replace type t_record as  object (
    id number,
    no number
    CREATE or replace type t_table AS TABLE OF t_record;
    set serveroutput on
    declare
      v_table t_table := t_table();
      v_t1 t_table := t_table();
    begin
      v_table.extend(1);
      v_table(1).ID := 1;
      v_table(1).No := 10;
      v_table.extend(1);
      v_table(2).ID := 2;
      v_table(2).ID := 20;
      SELEC t_record (ID,NO) BULK COLLECT INTO v_t1
      from TableA
      FROM TABLEA
      WHERE ID IN (select t.ID from table(v_Table) t);
      for i in 1..v_t1.count loop
        dbms_output.put_line(v_t1(i).ID);
        dbms_output.put_line(v_t1(i).No);
      end loop;
    end;
    /Untested!
    P;
    Edited by: bluefrog on Mar 5, 2010 5:08 PM

  • How to create attribute & set types with customer namespace COMM_ATTRSET?

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

    Hi CRM Gurus,
    I want to create some attributes and set types on CRM system with
    `/FITGL/` namespace but system is not allowed to create objects
    according. After debugging derives that SAP standart coding given below
    on LCOM_ATTRIBUTE_NEWF19 include.
    IF ( lv_systemname <> gc_sap_system ) AND
           ( iv_object_name(1) <> 'Y' AND iv_object_name(1) <> 'Z' ).
    Should we make an enhancement on this include? Is there any side
    efffects of this enhancement creating attribute & set types on CRM
    system during the packaging in terms of related with other attribute & set types objects?
    Kind Regards,
    Fahrettin

  • How to Specify/Associate a layout with a content

    I have created a new site, I have created few contents and few templates. During creation of content/page i did not find any option to associate a template or layout with the content/page. When i am trying to preview the content or try to open in web mode, I gets the following error.
    "A content layout must be specified to render this asset in web mode. Please specify a default layout."
    Need help me in resolving this issue.

    @Rodney: Thanks for the pointer. I did not choose that option. Problem solved after using that option.

  • How can i add movement type with newly created warehouse

    Dear expart
    In my SAP below messgae is showning at the time of pass the
    transaction code :MIGO
    "WM movement type 101 not allowed foe warehouse ABC"- How can i sovle the problem .Plz tell me the SPRO.
    Yeasin

    Hi,
    You can define WM movement type in V_T333:
    SPRO > LE > WM > Activities > Transfers > Define Movement Types - here you have to define WM mvt 101 for your WH ("ABC").
    LE-WM Interface
    SPRO > LE > WM > Interfaces > IM > Define Movement Types - here you can connect WM reference movement type to IM mvt and then WM mvt to WM reference mvt.
    Regards,
    Csaba

  • How can i change brush type with script?

    I can already set the width, size of it, but i cant find out how to change the type. Even script listener dont produce the needed code for it.

    Never mind. I managed to do it, script listener did produce the code, i just didnt find it at first. I meant brush style by type.

Maybe you are looking for

  • Sync Send

    I want to design a sync send to BPM. How can i do?. I am using JDBC adapter as sender..... BPM receivers the message.......then pass it to R3 using RFC Adapter.

  • HP M1536dnf even found by google

    Is it normal, that if you "google" with phrase like "HP M1635dnf IO timeout" you get a lot of accesible HP printers https://www.google.com/search?q=M1536dnf++IO+Timeout%3A&ie=utf-8&oe=utf-8 And could it be a result of getting pages printed with conte

  • Axis Web Service SOAP Response without namespace

    Hi folks, I use the Axis Framework and eclipse to create a Webservice. I wrote a Method which returns a List of customers(complex Element). When I execute the method I get the following result: <soapenv:Body> <getAllCustomersResponse> <ns1:getAllCust

  • BAPI_RE_CN_CHANGE renewal term deletion

    Hi experts, Please help.. I need help in deleting the renewal item in a real estate contract.  Just need to know what parameters need to be passed and changed to delete the renewal line item in transaction RECN.  I have tried bdc but the screens in t

  • How to put phone # in favorites?

    How so I put a phone # into favorites, old system was easy it asked.