Extract values of Contact

I was wondering if it would be possible to extract the values (name, surname, address, etc.) when a contact is shared through the card sharing?

So, an example of this would be:

  • Opening of the Contacts app
  • Click on a contact
  • Click on 'Sharing of Contact' in the overflow menu
  • Menu share rises
  • Click on my application
  • Invoke as card
  • Fill in the fields of different text with values from the contact

I know that when you share a contact, it is in .vcf format, so I was wondering if there are samples available or would be how to retrieve these values and put them into the text fields?

According to the docs contactFromVCard requires data VCard ("convert the vCard stream.")

As your previous debug indicates the URI contains the location of the file (as it probably should). You must open and read the file to analyze it.

Try
QFile file (request.uri);
If (file. Exists())
{
If (file.open(QIODevice::ReadOnly |) QIODevice::Text))
{
QTextStream textStream (&file);)
fileContents = textStream.readAll ();
leader. Close();
}
}

not sure if QFile requires the path whole file:/// or perhaps only a substring of it, check the Qt documentation and examples for this.

Tags: BlackBerry Developers

Similar Questions

  • Can we define a field value of contact with the CRM campaign settings ID campaign?

    Hello

    Can we define a field value of contact with the ID of CRM campaign?

    For example: LAST campaign SFDC ID (field of contact) = CRM campaign (campaign) No.

    The Eloqua campaign canvas has the possibility to update CRM directly with the status of the campaign on things like email send or clicks. IF you set these shares to be among the rules of the answer, then as they happen, they will create/update records of campaign in CRM directly responses. However, this will have an impact on information in Eloqua.

  • How to use 'Extract values' transformation?

    Hello

    I'm new to Disqualification. I have the following requirement - source system sends me Nom_tiers + address details. I need to check in the oracle database and if there is a match then return the ID and details of entry. I use verification audit of research processes to check if the data is present in the database. If the data is present, then, I need to send the code. I use to extract the ID of transformation 'extract values '. I can't set the reference for this data. Can provide an example how to use the same.

    Thank you

    Prabha

    Just use Lookup and return.

    However, it seems that you really should use a matching process.

  • extract values and fetch

    Hello

    I have following the result set when I have attached two tables and I want to extract values and achieve certain calculations, working with Oracle 11 g.

    For each set of values in col1, I need to extract the six values of four columns (col3, col4, col5 col6).

    Will you please help me on how to select and extract these values in PLSQL and I need calculate those values.

    For example, for a value of setting qHf in col1, I need to select values as shown below.

    a: = 97.0108212225871 (col3 value)

    b: = 32.8926555552399 (col4 value)

    c: = 97.0108906484698 (where col5 col7 value = 1)

    d: = 32.8926305735938 (where the col6 col7 value = 1)

    e: = 97.0107496352219 (where col5 col7 value = 2)

    f: = 32.8927446594943 (where the col6 col7 value = 2)

    -RESULTS OF THE JOIN GAME

    col1--col2---COL3---COL4---col5---col6---col7

    qHf--K9lN---97.0108212225871--32.8926555552399---97.0108906484698--32.8926305735938--1
    qHf--K9lL---97.0108212225871--32.8926555552399---97.0107496352219--32.8927446594943--2

    qHj--K9lH---97.0107942624454--32.8962736187889---97.0108641458855--32.8962520765163--1
    qHj--K9lF---97.0107942624454--32.8962736187889---97.0107256545409--32.8963630155553--2

    qHZ--K9nx---97.0309045000111--32.909536499905---97.0309477508092--32.9094003721652--1
    qHZ--K9nz---97.0309045000111--32.909536499905---97.0309457508092--32.9096953624556--2

    QL3--K9nt---97.0309085000024--32.9089935000592---97.0309512491911--32.9089671359185--1
    QL3--K9nv---97.0309085000024--32.9089935000592---97.0309502491911--32.9090761294466--2

    Do you want this:

    SELECT col1,

    col2,

    COL3 has,

    COL4 b,

    CASE WHEN col7 = 1 THEN END col5 as c,

    CASE WHEN col7 = 1 THEN END col6 as d,

    CASE WHEN col7 = 2 THEN col5 FINISSENT AS E,

    CASE WHEN col7 = 2 THEN col6 END AS f

    T

    COL1 COL2          A          B          C          D          E          F

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

    qHf K9lN 97.0108212 32.8926556 97.0108906 32.8926306

    qHf K9lL 97.0108212 32.8926556 97.0107496 32.8927447

    qHj K9lH 97.0107943 32.8962736 97.0108641 32.8962521

    qHj K9lF 97.0107943 32.8962736 97.0107257 32.8963630

    ..................................

    ................................

    .................................

  • extract values from graph

    Hello

    In the attached LabView routine, I'm trying to find a method by which I can tabulate the values (values of the axes x and y) return where and at what level the "spikes" occur.  In this example, I would like to extract the values of two:

    1000000 - 40.3316

    190193837.04 - 37.653182.

    From these points the spikes occur.

    The cavet is that these and other tips can occur anytime and at different levels.  Any help to extract these data will be useful.

    Thank you

    hiNi

    Use the VI threshold detector.

    Is the long ramp down at the start of the data series still present?  If so you would always delete the 0 index before the final release.

    Here is a starting point...

    And you may not want to do the threshold of a control or a different level of value that I did.

  • REST API - the field value date Contact exported in digital format.

    Hi people,

    I used below REST API to retrieve the Contacts with the views and custom filter.

    The JSON response, I shot the date value in the number format. As 'C_Lead_Score_Date': '1434456862',


    https://secure.Eloqua.com/API/rest/1.0/data/contact/view/ {identifier} / contacts/filter / {id}


    How can I convert the appropriate number in date value? or y at - it an adjustment to the level of the code to retrieve the value in the correct date format.


    The data type of the field is dates.

    The date is returned to as a Unix timestamp.

    You can use an online converter to convert it to a normal value, for example: online - time conversion Conversion Unix

    1434456862 = Tuesday, June 16, 2015 12:14:22 GMT

  • XMLTYPE Datatype - extracted value of an element based on the value in another element

    Hi all

    I have a typical XML problem in which I am trying to extract the value of a property on the base of another.

    Here is an example of XML data:-

    < object type = "InstanceObject:instanceKeyValue" version = "2" >

    < property name = 'name' value = 'COUNTRY' valueType = "string" / >

    < property name = "keyValueType" value = "VARCHAR" valueType = "string" / >

    < property name = "keyValue" value = "SINGAPORE" valueType = "string" / >

    < / object >

    < object type = "InstanceObject:instanceKeyValue" version = "2" >

    < property name = "name" value = "DATA_SET" valueType = "string" / >

    < property name = "keyValueType" value = "VARCHAR" valueType = "string" / >

    < property name = value 'keyValue' = 'April 9, 2014' valueType = "string" / >

    < / object >

    My requirement is-

    If value = 'COUNTRY' under/object/property then I need the property value where @name = "keyValue" that is Singapore.

    But when I do

    SELECT EXTRACT('object/property[@name="instanceKeyValues"]/object/property[@name="keyValue"]/@value')

    I get the two keyValues SINGAPORE09-APR-2014

    While I only need Singapore.

    No idea how we can solve this?

    Sorry, I'm a jerk, so finally I just with this

    with t as)
    Select xmltype)
    '
            
               
               
               
           

           
               
               
               
           


               
               
               
           

    '
    ) x
    of the double
    )

    Select
    Val
    t
    xmltable)
    "for $o in/root/object.
    ["Let $p: = $o/property[@name="keyValue "]
    ["where $o/property[@name="name"][@value="COUNTRY "]
    Return $p'- or return $p/@value'
    go x
    columns
    path of varchar2 (40) Val '@value' - or '.'
    )

    VAL
    Singapore
    India
  • Extract values from the UDM

    Hello

    I created a few sql command UDMs and I need to extract their values if I can do some calculations.

    I have the 11.1 database

    Thanks in advance for your help.

    Kind regards
    Sagar

    Hi Sam,

    You can get the current values using:

    Select target_name, metric_label, column_label, value, target_type, key_value

    Mgmt $ metric_current where target_name =: targetname

    and metric_label = "User - Defined SQL Metrics"

    order of column_label

    for the story of a metric, you need to use mgmt$ metric_hourly, mgmt$ metric_daily

    HTH,

    Andrey

  • Procedure to another procedure call, how to extract values

    I have couple of procedure in a package and I try to call proceedings in procedureb.
     TYPE T_CURSOR IS REF CURSOR;
     PROCEDURE ProcedureA (acct IN number, o_cur OUT T_CURSOR)
     AS
     BEGIN
          Open o_cur for
           SELECT A, B, C, D, E, F FROM DEMO;
           
     END ProcedureA
     
     PROCEDURE ProcedureB (param1 IN number, param2 IN number)
     AS
     get_cursor                 T_CURSOR;
     BEGIN
     
     ProcedureA(111, get_cursor);
     
     END;
    How to extract the values of proceedings in ProcedureB? And also I want to get only columns A and B in ProcedureB.

    >
    How to extract the values of proceedings in ProcedureB?
    >
    Try something like this

    TYPE rectype IS RECORD (colA  demo.a%TYPE, colB demo.b%TYPE    );
         rec1  rectype; 
    
    LOOP
      FETCH get_cursor   INTO rec1;
      EXIT WHEN get_cursor%NOTFOUND;
            DBMS_OUTPUT.PUT_LINE(rec1.colA);
         END LOOP;
           DBMS_OUTPUT.PUT_LINE('end test'); 
    
  • How to assign to the variable of type XML with function extract values?

    Hello

    I have variable XMLTYPE LeXml have under folder

    <? XML version = "1.0" encoding = "utf-8"? >
    < soap envelope: xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" container = "http://www.w3.org/2001/XMLSchema" xmlns:soap = "http://schemas.xmlsoap.org/soap/envelope/" >
    < soap: Body >
    < AddListing xmlns = "http://www.christielites.com/" >
    string of < sComCode > < / sComCode >
    string of < sLocCode > < / sLocCode >
    dateTime < dStart > < / dStart >
    dateTime < made > < / made >
    < sEcode > string < / sEcode >
    < iAvail > int < / iAvail >
    < iOwned > int < / iOwned >
    string of < sPostTrans > < / sPostTrans >
    < / AddListing >
    < / soap: Body >
    < / envelope soap: >

    I want to get the sEcode value chain in a varialbe using the extract function or another?

    can someone give me the syntax FRO it?

    I tried with Mstring:=LeXml.extract('AddListing/scomcode/text()').getStringval(); but iam in error
    ERROR on line 1:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00601: token not valid in: "soap:Envelope/text().
    ORA-06512: at "SYS." XMLTYPE", line 111
    ORA-06512: at the 'BLUEWATER '. CREATELERESPONSELOG', line 12
    ORA-06512: at line 1

    Please guide me.
    Mstring:=LeXml.extract('AddListing/scomcode/text()').getStringval(); 
    

    should be

    Mstring:=LeXml.extract('/soap:Envelope/soap:Body/AddListing/sComCode/text()', 'xmlns="http://www.christielites.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"').getStringval(); 
    

    I used to request verification is

    select xmltype('
    
    
    
    string
    string
    dateTime
    dateTime
    string
    int
    int
    string
    
    
    ').extract('/soap:Envelope/soap:Body/AddListing/sComCode/text()', 'xmlns="http://www.christielites.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"') from dual
    

    Ravi Kumar

  • Extract values with regular Expression

    How to extract the values in [] using regular expressions.
    With data As
    (
    Select 'AAAAAA[10] AAA: 19C' Txt From Dual Union all
    Select 'XX[450]-10A' Txt From Dual Union all
    Select '[5]AVC19C' Txt From Dual Union all
    Select 'FVD[120]D2AC' Txt From Dual
    )
    I hope that this return
     10
    450
    5
    120
    Thanks in advance

    Or another:

    SQL> ed
    Wrote file afiedt.buf
    
      1  With data As
      2  (
      3  Select 'AAAAAA[10] AAA: 19C' Txt From Dual Union all
      4  Select 'XX[450]-10A' Txt From Dual Union all
      5  Select '[5]AVC19C' Txt From Dual Union all
      6  Select 'FVD[120]D2AC' Txt From Dual
      7  )
      8  --
      9  select regexp_replace(txt, '^.*\[(.*)].*$','\1')
     10* from data
    SQL> /
    
    REGEXP_REPLACE(TXT,'^.*\[(.*)].*$','\1')
    ---------------------------------------------------------
    10
    450
    5
    120
    
    SQL>
    

    Edit: even though I think it is misleading not escape the right hook, so I prefer:

    SQL> ed
    Wrote file afiedt.buf
    
      1  With data As
      2  (
      3  Select 'AAAAAA[10] AAA: 19C' Txt From Dual Union all
      4  Select 'XX[450]-10A' Txt From Dual Union all
      5  Select '[5]AVC19C' Txt From Dual Union all
      6  Select 'FVD[120]D2AC' Txt From Dual
      7  )
      8  --
      9  select regexp_replace(txt, '^.*\[(.*)\].*$','\1')
     10* from data
    SQL> /
    
    REGEXP_REPLACE(TXT,'^.*\[(.*)\].*$','\1')
    ---------------------------------------------------------
    10
    450
    5
    120
    
    SQL>
    

    just for cleanliness.

    Published by: BluShadow on June 29, 2009 13:35

  • Help extract value from the list defined by the

    Hi all

    I posted this question in the forum of PL/SQL (help to extract the delimited list values by the but as Justin answered, there may be a solution in APEX, so I wanted to ask here as well.)

    ----------

    I have a procedure similar to that below and I'll send IN parameters from a screen of Apex.
    procedure getData (p_param1 in varchar2, p_param2 in varchar2)
    is
    begin
    
    
    for x in (select col1, 
                  from table
                  where colx = param1
                  and coly in (param2)
                  )
                  
    ....
    
    end;
    It works fine until the user chooses several values on the page of the Apex (that's a multiple selection list box). The values are passed to the procedure in a colon delimited list, it looks like
    VALUE1:VALUE2:VALUE3
    My question is, how can I analyze the values while the where clause looks like.
    ...
    where colx = param1
    and coly in ('VALUE1','VALUE2')
    ...
    or something like that?


    Thanks for any help.

    -Chris

    Chris,

    See this example:

    http://Apex.Oracle.com/pls/OTN/f?p=31517:138

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    -------------------------------------------------------------------

  • AppleScript - extraire extract values from a table, create a text file with these values

    Hello world

    Lets say I have a table that looks a bit like this

    And this table I would create 2 text files (or even more, depending on how many switchnames are there) who look a bit like these

    Is it still possible?

    I suppose to create a Service (which can be called in numbers) with Automator which includes an Applescript script - but - no idea since the script is not one of my strong suits.

    There is not need to be perfect, because tables are not necessarily the model presented above - so to tweek the script to the application will be necessary. The text files can be created/saved in the same folder as the file numbers is in.

    Y at - it script-genius out there?

    See you soon

    Florian

    Select the column of fist of the data, and then run this script by copying the Forum and paste it into the script editor.  The files will appear on the desktop

    say application "Numbers".

    say front document to tell the worksheet active

    say ( class is worn) fromfirst table whose selection range

    selectionRange defined in column 1 of the selection

    set cnt to 0

    the value destRange for range

    the value currentList to {}

    -the list of switches

    Repeat with acellule in selectionRange cells

    -say acellule to set the value on the NTC

    pass the value to the value of cell

    if and ((cnt > 0) (switch is not missing value) and (currentList is not contain switch)) then

    switch and the value in the currentList currentList

    end if

    NTC put to the cnt + 1

    end Repeat

    -Display dialog box "to the list of items is:" & currentList & "a list" & (currentList County) ".

    Repeat with aswitch in currentList

    " game textOut to '# Script generated with Applescript for switch' & aswitch &"

    # on "& (today's date) &"

    !

    conf t

    "

    set cnt to 0

    Repeat with acellule in selectionRange cells

    -say acellule to set the value on the NTC

    pass the value to the value of cell

    -Display dialog "aswitch is []" & aswitch & "] and switch is []" & switch & "]".

    if (aswitch contains the switch) then

    the value cellCol to address a column of first cell of acellule

    address of line of first cell value cellRow in of acellule

    value to the aport (value of the cell of the column (cellCol + 1) cellRow) integer

    the value vlan for the (value of the cell cellRow of column (cellCol + 2)) integer

    the value desc to the (value of the cell cellRow of column (cellCol + 3))

    " put to textOut textOut &.

    !

    "" IG 1/0 interface / "& aport &.

    switchport mode access

    switchport access vlan "" & vlan & ""

    Description LINK TO "" & desc & ""

    "

    on the other

    -Display dialog box "did not: []" & aswitch & "] and []" & switch & "]".

    end if

    NTC put to the cnt + 1

    end Repeat

    Set myFile to open for access (path to the Office as text) & aswitch & '_output.txt' the with write permission

    textOut write to myFile

    MyFile close access

    end Repeat

    end say

    end say

    end say

  • BlackBerry Z10 extraction Z10 phone Contacts to CSV

    I need to take the Z10 Contacts for my old Bold 9900.

    I changed my devices but what restoration of the Cloud a lot of contacts stored in my Z10 are lost.

    Help will be very appreciated...

    Nice day

    Welcome to the BB forums

    To tell the truth you I never tried to downgrade to my old Bold 9900, but I think what you should buy this app

    Contact X

    http://appworld.BlackBerry.com/WebStore/content/25909873/

    or maybe someone else has the best method!

    Good luck

  • How to extract values of classic report column in the text element

    Hi all

    I've created a classic report (select id, name,' < input type = "button" value = "add" id = "add" name = "add" > "as" add details "details ;) with a single column as column values want link.i in the text element when I click on the link of that particular record of the report)

    (1) in the link this link column property I've specified the URL as [javascript:insert_in_table(#ID#,#NAME#)]

    (2) text two article P_ID, P_NAME

    (3) in the header of the page, I've specified as javascript

    < script type = "text/javascript" >

    function insert_in_table (id, name) {}

    var regId = ' #detail #'.substr (1);

    var req = new htmldb_Get (not null, $v ('pFlowId'), 'APPLICATION_PROCESS = add', $v('pFlowStepId'));

    Req.Add ('P_ID', ID);

    Req.Add ('P_NAME', Name);

    forced. GetAsync (function () {}

    If {(p.readyState is 4)

    $a_report (regId);

    }

    });

    }

    < /script >

    (4) created a (add) process whose point: on demand, run this process when requested by ajax

    pl/sql: insert into name_detail (id, name) values (: P_ID,: P_NAME)

    now the problem is I m not getting the values of column in the report in the text element, it only shows white.

    Kind regards

    Ketan

    Hello Ketan,

    Assuming that you want to insert the values into the table, this is why you want to set values for the element,

    If this is the case, then no need to define values for the element to insert.

    Follow the steps below, it is one of the embodiment of your condition.

    Step 1: Put the code below in your classic report query

    assuming that the id is of type number and the name is of type varchar, that's why I am attaching the name to apostrophe, see line 3

    select id
         , name
         , ''  as "Add to detail"
    from detail
    

    Edit 'Add details' column-> column attributes-> view-> column of Standard report

    Step 2: Create a process in the processing of the Page

    Name: INSERT_DATA

    Address the point: on demand, run this process when requested by ajax

    Process: putting the code below

    Declare
      P_ID number ;
      P_NAME varchar2(50);
      Begin
          P_ID   := apex_application.g_x01;
          P_NAME := apex_application.g_x02;
          insert into name_detail(id,name) values (P_ID,P_NAME);
    End;
    

    Step 3: Create a java script function to call your insert ajax process.

    Change the Page-> the function and the global variable declaration-> put the code below

    function insert_in_table(id,name) {
      apex.server.process ( "INSERT_DATA", {
          x01: id,x02: name
      }, { success: function( pData ) { }
      });
    }
    

    Hope this helps you,

    Kind regards

    Jitendra

Maybe you are looking for