How to handle the onTriggered many ActionItem created dynamically

Hi, I created the ActionItem dynamically using (loop)

because data is from webservice

How to handle the onTrigerred?

If my code is like this:

for (int i = 0; i)< alist.count();="">

{

My page page * = iRoot-->findChild ("SpecificObject");
ActionItem * action = ActionItem::create () .title (aList [i] .name);

bool res = QObject::connect (action, SIGNAL (triggered ()), this, SLOT (handleAction (())); what I'm confused because I don't know what action is triggered
Q_ASSERT (res);
Q_UNUSED (res);

my page-> addAction (action, ActionBarPlacement:efault);

}

MyClass::handleAction() Sub

{

aFunction(); This parameter of function required of aList, said user.user aList [i]

}

Do I need to create handleAction() as well as added actionItem SLOT

But I don't know how much action added because it is dynamic server

Thank you

There are a few options:

Create a single location and connect all the signals. You can then call sender() into the slot to retrieve the object that sent the signal and go from there. You can also use a QSignalMap that maps each signal to a value and send this value to a single location. You can also use QSignalMap::sender() to get the sender object.

I used the QSignalMap to do something similar for handling created dynamically successfully drop-down lists.

Tags: BlackBerry Developers

Similar Questions

  • How to handle the case of zero insert line?

    11.2.0.2, I want to insert into a table and you want to handle the case where the zero line is inserted. I use the following code and hope an exception is caught and let me have the chance to do something
    set serveroutput on
    begin
    insert into his2051 select * from his2051  where today not in ( select distinct today from his2051 );
     EXCEPTION
        WHEN NO_DATA_FOUND THEN
            DBMS_OUTPUT.PUT_LINE('NO_DATA_FOUND exception ' );       
        WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('OTHERS exception ' );       
    end;
    The block runs OK, but not seen release. How to handle the case of insertion of line 0?

    This will do what you want:

    set serveroutput on
    begin
    insert into his2051 select * from his2051  where today not in ( select distinct today from his2051 );
     if SQL%ROWCOUNT = 0 THEN
            DBMS_OUTPUT.PUT_LINE('%rowcount must be  [' || SQL%ROWCOUNT || '].' );
            DBMS_OUTPUT.PUT_LINE('NO_DATA_FOUND - but won't cause an exception ' );
     END IF;
     EXCEPTION
        WHEN OTHERS THEN
            DBMS_OUTPUT.PUT_LINE('OTHERS exception ' );
    end;
    
  • How to handle the end makes arriving in OWB

    Hello everyone

    I have a table of facts related to a dimension with SCD type2. My problem comes when I files in fact arrive late (a few documents that belong to the past are coming now and I have to connect them to records in dimension to this date in the past). I created a card and fill in the ACTIVE_DATE field in effect at the relevant date (INFO_DATE). The query that is generated from this map is like this:

    SELECT * s "STG" JOIN "DIM" d

    "" "ON s." CRNC_CD "= d." DETAIL_BUSINESS ".

    WHERE

    (d."DIMENSION_KEY" (= d."DETAIL_PK") AND (d."DETAIL_PK" IS NOT NULL) AND

    (

    ( d." Correspondents' is null) OR

    ( d." ("" "" ' Correspondents' IS NOT NULL AND s."INFO_DATE" BETWEEN d. "EFFECTIVE_DATE" AND d. ' correspondents ' )

    )

    Let's say we have an element with 2 revisions in my dimension table:

    CORRESPONDENTS

    EFFECTIVE_DATE

    CRNC_CD

    29 SEP-14

    JUNE 10, 14

    02

    NULL VALUE

    29 SEP-14

    02

    Now, if a recording made happen with his return date to the "request" 28-SEP-14, in the foregoing conditions highlighted are correct and the two dimension rows are returned, which isn't what I want. How can I handle this?

    What I did as a solution was to modify the generated code and run this as a package, instead of executing the plan:

    SELECT * s "STG" JOIN "DIM" d

    "" "ON s." CRNC_CD "= d." DETAIL_BUSINESS ".

    WHERE

    (d."DIMENSION_KEY" (= d."DETAIL_PK") AND (d."DETAIL_PK" IS NOT NULL) AND

    (

    ( d." (' ' ' Correspondents' IS NULL AND s.' INFO_DATE ' > = d. "EFFECTIVE_DATE") OR

    ( d." (' "'" ' Correspondents' IS NOT NULL AND s."INFO_DATE" BETWEEN d. "EFFECTIVE_DATE" AND d. "CORRESPONDENTS")

    )

  • How to handle the task of automation without connection SGD-Automation

    Hello

    I have created an Automation task, the task performs the work, but after completing the work, I need to connect SGD-automation user and update the status of the task to move to the next step. How to avoid manual handling in the task of automation? How to do the task to go to the next manual task without connection with CMS-automation.


    Kind regards
    Marg

    In your Xquery use the syntax "context: completeTaskOnExit ($context, $exitStatus).

    Set these two variables ($context, $exitStatus) according to your required exit status.

    Hope this has helped.

    Thank you

  • How to handle the no_data_found exception

    Hi all

    How to treat no_data_found exception in the procedure. I created a procedure with the cursor, the cursor loop and passing the value to the select statement (in the where clause). It works fine if the select statement returns one other wise he throws exception no_data_found, but I want to continue execution after the statement select returns no ecor. Please let me know how to handle this.


    Thank you and best regards,
    Rajasekhar

    Hello
    Assuming it's the syntax of your procedure:

    create or replace procedure XXXXXX as
    .
    .
    
    .
    .
    
    for cur_rec in 
    loop
    .
    .
    .
    
    .
    .
    .
    begin
    
    exception
    when no_data_found then
    
    end;
    .
    .
    
    .
    .
    end loop;
    .
    .
    end procedure;
    
  • How he handles the labview to more generic class

    It's just a matter for my own knowledge of curious nerd. If you, say, have a cluster that contains a string, a Boolean value, and a digital control, a common method to reference the controls in the cluster is to create a cluster of reference and then to get the array of control from a property node. So let's say I wanted to put the Boolean value true, you can auto control array index and cast in more specific class boolean and set value via the property node (see below).

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    for (imstuck) wrote:

    Now my question is, to place controls of different types in a table must be returned by the property node, they must all be of the same class. How LabVIEW manages it? He cast as a more generic class backstage? If so, how this work because it is generally dangerous to come back from a class derived from a base class because the data can or will be lost.

    Furthermore, a standard molded type takes just a binary model and interperates as differently it based on the data type. So how is "of a more specific class" able to raise an error if a generic control reference cannot be transformed into a class more specific. For example, in the attached photo, a control string reference would be mistake out there, but how? They are all classes of generic control when they get out of the property node. Is there some type of indicator in the generic control reference indicating the type? Maybe I think about this fundemtally wrong. All I can think is that the more specific / are more generic vi no type casting (which I guess they are not because it has separate type cast feature).

    Can someone explain how this all works. Inquiring minds want to know.

    I don't know all the details, but I would say you got it mostly right - there is an implicit conversion to a more generic type.  You will see this in several places in LabVIEW, for example, you can wire references to different types of controls in "table to build" to get a picture of their more specific common parent.  Because you're only casting reference - not the data that it contains, there is no loss of data.  A LabVIEW reference is just an I32 is (I assume) an index into a lookup table somewhere.  The value of this I32 does not change when it is converted into a more generic reference.  When you do "to more specific Type", LabVIEW raises this reference in the table and uses the data it found to determine if she can make the cast.  Who help me?

  • How to handle the null value

    Hi all

    Can someone tell me how to handle null.

    I have a radio button, I need to capture the worth and inspiring I have a search criterion.

    If I select the radio button without problem. If I did not choose the option button it gives me the error.

    OAMessageRadioButtonBean var1 = (OAMessageRadioButtonBean) webBean.findChildRecursive ("job");
    If (var1! = null)
    {
    S1 = var1.getValue (pageContext) m:System.NET.SocketAddress.ToString ();
    }

    Please suggest.

    Kind regards

    Sangu

    S1 = (String) var1. GetValue (PageContext);

  • Inactive Contacts - how you handle the?

    We currently have XXX, XXX (there is no way I'm telling you, in fact) of contacts in Eloqua, which is not just whatever be done in a VERY long time. We have recently acquired another company who does not use Eloqua and working on their integration in our system. Now I'm sure that like Eloqua me just buy more space, I work on a project to clean up the deadbeats and leave room for shiny new customers. The program that we run has three points of contact, and if a customer engages in any of the steps they got out the program and will be left in the system. In the last step we let them know that if we do not hear back from them within 10 days, we will assume that they are super busy and we will remove them from our database. Also, we are ignoring those who joined in the last 12 months, because they can always be interested in reading some of our materials and have not gotten yet around him.

    This seems to be an Amir of a program and will surely cause our stats boost then because we send is more people that never open anything.

    How you handle these kinds of people? Do you agree with our approach?

    Absolutely!  It is a perfect process.  In my life earlier as someone who was directly in the marketing of opps, we did this process manually about every 3 months.  Automating this process with a campaign and send to the PB to automatically remove contact looks a perfect nurture automated.

    You can even include the verbiage in the last email, if they "do not" provide this mail they will be removed from the system.

  • How to ignore the 'aspect ratio' by creating a rendering custom through BOVINE infectious rhinotraecheitis

    Hello people,

    Ive set up some custom interpretations which are mainly based specific size and IBR is able to generate the most selected.

    But it ignores the specified height or width based on the best fit and creates a record in maintaining the proportions .

    No idea how to force the BOVINE infectious rhinotraecheitis to create a 100 x 100 or any what 'specific' rendition of combination of height x width?

    Ive configured ootb engine for rendering, not any external engine.

    BTW its WCC 11.1.1.8

    Kind regards

    Pradeep Mahajan.

    http://ucmchronicles.WordPress.com

    Instead of graphicwidthlimit and graphicheightlimit, use graphicwidth and graphicheight in this rendition file and test the output of the image.

  • How to use the clause type conditionally create new lines

    This question is just for learning - no object other than to start real world to create versions of some queries known to learn how to measure the performance of the MODEL clause clause of the MODEL versions.

    The question is: How can you write a STANDARD clause that pivots (updates) ONLY the lines that actually need to rotate and do NOT change the lines that have no value and cannot be rotated.

    I found a good site that has about two dozen example articles on different pieces. This first link is the beginning of the series.

    SQL features tutorials - Clause TYPE

    http://www.sqlsnippets.com/en/topic-11663.html

    This link is to a clause of FAQ of BluShadow MODEL version "how to convert rows to columns."

    Line - MODEL method string

    http://www.sqlsnippets.com/en/topic-11987.html

    The solution to this link uses this line of source:

    POSITION KEY VAL

    --- ---------- ----------

    R08 0 v1, v2, v3,.

    and this result set:

    POSITION KEY VAL

    --- ---------- ----------

    R08 1 v1

    R08 2 v2

    R08 3 v3

    The reason why it produces that result set is this clause of the statement of MODEL

    RETURN THE UPDATED LINES

    If you comment on this article, you will see that the original lines are all in position 0. This means that the solution reproduced EACH SOURCE LINE even if there is only one item in the list of values.

    Thus, even a line source with a single value (for example, the r01 'a') will be updated and updated this line is returned.

    For a large number of data sources with only a few lines that actually need to rotate it would be a great performance of infringement.

    This is the sample data source

    with t as (button 1, 'a' value 'abc' col2, col3 'def' of the double
    Select Union all 2, 'b', 'ghi', 'jkl' from dual
    Union all select 3, 'c, d, e, 'mno', 'pqr' from dual.
    Union all select 4, 'f', 'stu', 'vwx' from dual
    )
    Select the key, value, col2, col3
    t

    KEY, VALUE, COL2, COL3
    1, a, abc, def
    2, b, GHI, jkl
    3, "c, d, e, mno, pqr.
    4, f, stu, vwx

    Lines 1, 2 and 4 only have a value of (a, b, c respectively.

    Only line 3 must rotate. It contains "c, d, e" and which must become 3 lines in the result set

    Value of the key, col2 col3
    1 an abc def
    2B ghi jkl
    3 c mno, pqr
    3 d mno, pqr
    3 e mno, pqr
    4 f stu vwx

    The nut of the problem is that if the clause 'RETURN UPDATED ROWS' is used, then the lines 1, 2 and 4 must be updated in order to be returned in the result set. And if this clause is NOT used, then line 3 must be updated by 'c', d, e 'c' and two new product lines: one line for a ' and one for 'e '.

    How can you do this with the TYPE clause without the help of the clause "Return LINES UPDATE"? I don't have a solution to sample showing what I tried because I can't understand what it takes to even try.

    I have a solution that uses "RETURN UPDATED ROWS" but I want to compare this performance to the exercise, when this clause is NOT used.

    We ask BluShadow to add the solution of MODEL clause to this FAQ with other similar solutions.

    Like this?

    SQL > with t as
    () 2
    3 select the 1 key, 'a' val, 'abc' col2, col3 'def' of the double


    Select 4 Union all 2, 'b', 'ghi', 'jkl' from dual
    5 union all select 3, 'c, d, e, 'mno', 'pqr' from dual.
    Select 6 Union all the 4 'f', 'stu', 'vwx' from dual
    7)
    8. Select the key
    9, key_1
    10, val
    11, regexp_substr (val, ' [^,] +', 1, key_1) val_new
    12, col2
    13, col3
    14 t
    model 15
    16 partition by (key)
    dimension (1 key_1) 17
    18 measures (val, col2, col3, (length (val) - length (replace (val, ",")) + 1) as len)
    19 rules
    (20)
    21 val [for 1 to increment of len key_1 [1] 1] = val [1]
    22, col2 [for 1 to increment of len key_1 [1] 1] = col2 [1]
    23, col3 [for 1 to increment of len key_1 [1] 1] = col3 [1]
    24)
    25 order
    26 by key
    27, key_1;

    KEY KEY_1 VAL VAL_N NECK NECK
    ---------- ---------- ----- ----- --- ---
    1 1 has an abc def
    2 b 1 b ghi jkl
    3 1 c, d, e c mno pqr
    3 2 c, d, e d mno pqr
    3 3 c, d, e e mno pqr
    4 1 f f stu vwx

    6 selected lines.

  • How to identify the siebel custom index created from DB without using siebel tools

    Dear Experts,

    Please let us know how to identify siebel custom indexes that are created directly through DB. We don't are not sure on the customer tables had created indexes.

    Thank you

    Carine Ch

    Hello carine,.

    Thank you for using Oracle communities.

    Custom indexes created without using Siebel tools are not included in the schema definition in the Siebel Repository.

    Just for your information, these indexes are deleted during the upgrade of database. In order to preserve these indexes, add them to the repository Siebel using Siebel Tools.

    Now come to your query you have utility DBCHCK.

    DBCHCK is that Siebel provided utility to compare the logical schema in the Siebel Repository against objects in the physical Oracle database.

    DBCHCK must be run regularly to check the status of the Siebel business, especially after a release.

    DBCHCK can be useful to identify custom index added by the development team, but not added to the repository using Siebel tools.

    You can run it from a server in the environment. A performance by connection to the base. This should be run from the folder siebsrvr

    You can get more information from document following knowledge.

    How the Dictutl and the dbchck to run? (Doc ID 475677.1)

    I hope it helps.

    Best regards

    Chetan

    P.S. If one of the answers was correct or useful, it would be great if you can mark as appropriate help the other identified correctly updated.

  • How to handle the NULL or empty fields XML

    I'm parsing an xml file and transform it into a query object. All good until I get a NULL value or misssing in my XML file and then I begin to receive some error messages like

    The value "cannot be converted to number.

    So, how can I check these missing values or NULL in the XML and then put them to a lack of value, so they keep appearing as "?

    Here is my code: it runs great until I hit a missing value

    < cfset mydoc = XmlParse (myxml) >

    <!--get an array of employees-->

    < cfset emp = mydoc. SET OF LINES. XmlChildren >

    < cfset size = ArrayLen (emp) >

    < cfset orderquery = QueryNew ("FIRST_NAME, LAST_NAME, numero_fichier, JOB_TITLE_DESCRIPTION") >

    < cfset temp = QueryAddRow (orderquery, #size #) >

    < cfloop index 'i' = from = "1" = "#size #" >

    < cfset temp = QuerySetCell (orderquery, "First name",

    #mydoc.rowset.ROW [i]. FIRST_NAME. XmlText #, #i #) >

    < cfset temp = QuerySetCell (orderquery, 'Name',

    #mydoc.rowset.ROW [i]. LAST_NAME. XmlText #, #i #) >

    < cfset temp = QuerySetCell (orderquery, "Numéro_fichier",

    #mydoc.rowset.ROW [i]. FILE_NUMBER. XmlText #, #i #) >

    < cfset temp = QuerySetCell (orderquery, "JOB_TITLE_DESCRIPTION",

    #mydoc.rowset.ROW [i]. JOB_TITLE_DESCRIPTION. XmlText #, #i #) >

    < / cfloop >

    Which column throws the error?  Given that you do not specify the data types in your QueryNew call, I guess that's FILE_NUMBER.  In this case if the first sign up process has a number of this column, then CF will implicitly define this column to be digital.  If that is your intention, very well.  Otherwise, specify the types of data explicitly.

    If this column must be numeric, then you will need to perform a few checks before writing to the cell in the query.  Given that the statement of QueryAddRow() creates a bunch of empty rows with null values in all the columns, you just have to jump from writing to the cells that need to be set to null:

    Notice a few things that I spread the code:

    • No sign of #-you only need within blocks of at the exit of the variables on the screen.  They are almost never necessary in the function calls.
    • No "temp =" in the tag.  They aren't necessary if the operation right of the equal sign does not return a value, you need to store in a variable, as in this case.

    HTH,

    -Carl V.

  • Nobody knows how to set the type exposing without creating an odd line spacing

    I need how to superscript® for all browsers in Muse. When I use the outlining style, it creates a different spacing on this line seen in Safari or Firefox.

    FYI... The latest version of Adobe Muse CC (2014.3) directly supported for exhibitor/index via the text panel. We also ensure that exhibitor/index will not affect the line spacing.

    Abhishek

  • How to set the HostDiskPartitionAttributes property when creating Vmfs volume

    Hi all

    When creating vmfs datastore through vlume

    programmatically, I need to partition the vmfs volume. here my question

    is an idea how to set the HostDiskPartitionAttributes there is a

    parameter to create vmfs vloume. Here I use Vdisk lun san

    "that will have the size, raid, stripesize... by this I need to set this.

    HostDiskPartitionAttributes ' property.could someone help me please. "

    Note: it's links to the document:

    http://www.VMware.com/support/developer/VC-SDK/visdk25pubs/ReferenceGuide/index.html

    is the method that you need to find CreateVmfsDatastore.

    Thank you

    As partition is a contiguous series of blocks on a disk that is marked to be used and is considered in each sector of 512 bytes. Must divide the space into sectors and specify startSector and endSector according to your requirement, that the way in which large partition you want to create.

  • How to force the data type in create table field?

    Hi all

    I need to force my table to create as follows

    Create table XYZ

    (Test varchar2 (10 CHAR)

    ...

    );

    When I run my Interface the script is

    Create table XYZ

    (Test varchar2 (10))

    ...

    );

    and the DBMS translated into

    Create table XYZ

    (Test varchar2 (10 BYTE),

    ...

    );

    I have the same problem with I$, C$, and so on.

    Best regards

    Marco

    Hi all

    I fix my problem:

    In Phisical Tecnology, under ORACLE Tecnology, data TYPE, I modified the definition of VARCHAR2 in VARCHAR2(%L CHAR).

    (Before it was VARCHAR2 (%)).

    Thank you all.

    Marco

Maybe you are looking for