Function to analyze the value of a field to another field of the contact form contact

HI - we need for the reports to be able to take part of the chain of values in a field.

For example we would bring in a field called Service_Name and take the Tactic_Code starting from the attribute and put it in another field of tactical called contact Code as shown below.

Does anyone know how to do this using a feature in the program generator. I tried using a rule to update but could not understand it.

Any help would be greatly appreciated.

Blake

Service_name = a been of _CH_ [Marketing_Channel] = [Campaign_Name] [Tactic_Code]

Tactic code =[Tactic_Code]

Yep, Michael there as usual, it is the way to go. You will need a regular expression (regex - if you are not familiar with the regular expression, a good tutorial is here: Regular Expression Tutorial - Learn how to use regular Expressions) pull the tactical code out of your service name - you want to use the 'replace regular expression' in cloud connector.

I think it should work, but you'll want to test:

Regex to find:. * ? T_(.*)$

The regular expression to replace: $1

Tags: Marketers

Similar Questions

  • A default value for a field in a table form, didn't get saved with line

    Hi people,

    I have a simple form on a table. A column, CUST_ID, must be filled when I create a branch to this form. So I change the element, set the source to 'Element (Application or page item name)' and then add the name of the source element. It works fine, the correct CUST_ID is entered in the CUST_ID field as expected. But when I add data to other fields and apply the changes, all data is saved on the line, except the CUST_ID. Am I missing simething simple here?

    Thank you very much

    -Adam vonNieda

    It's a slow Tuesday :)

    Return to the database and do not forget to enter the name of the field to the source value and specify the source used only when current value is Null to avoid that it be replaced by DML research.

    By default, enter PL/SQL Expression as type and: Field_Name (you load with). or you can also enter static text such as type and use & Field_Name. format instead, I think. Include the. After Field_Name.

  • How to create the javaScript function that erases the text of the field values

    Hello
    How can I create a javaScript function to clear the values of the text fields
    and I want to call this function on the clear button on my custom area

    Yes it is possible but not recommended approach.

    Here is the link that you can use if you want to implement using javascript
    http://www.itechies.NET/tutorials/JScript/jsexample.php-PID-set_field.htm

    Thank you
    AJ

  • I want to analyze the values from a string

    Hello.. I want to analyze certain values in a string... it's values in my channel...

    anyType{NewDataSet=anyType{Table=anyType
    {SINo=5; ProductId=33;productname=aaa;
    price=543;};Table=anyType{SINo=1;
    ProductId=111;productname=bbb;price=543;};};}
    

    I need to display my SINo, ProductId, productname and price... everything separately... is it possible? or is it possible to convert this string to an xml and then parse the values?

    You can write a function to split this string with respect to the level of a delimiter, in this case '=' can be used, like the Split function available in the string for the Desktop Java class.

    This function returns an array of strings in which the split string values is stored.

  • Returns the lowest value of two fields

    Hello

    I have two domains that users manually enter in a form.  Value1 and Value2.

    Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?

    Thank you

    Natalie

    I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:

    Custom calculate script

    (function () {}

    Initialize the array

    aNums var = [];

    Get the field values as strings

    var s1 = getField("Value1").valueAsString;

    var S2 = getField("Value2").valueAsString;

    Convert values to numbers if not empty and add to the table

    If aNums.push(+s1) (s1);

    If aNums.push(+s2) (s2);

    Set the value of this lesser field of entries

    If both are blank, this field blank

    Event.Value = aNums.length? Math.min.Apply (null, aNums);:

    })();

  • Analyze the values to a string and then place in the lines

    Hi all

    I need help here. I have a field called document_desc. Below is a sample of its contents:


    Invoice: * 90104 * attachment document URL created in ArchiveLink content server. Number of
    attachments: 3 Document ID (s): * 4FB6EB9040000ACA813, 4FB6EB924C0A2A813 *.
    *, 4FB6EBB7000ACA813 * (s) URL :): http://xxxxxxxxxx
    I need to do 2 things here:

    1. I need to analyze the elements in bold. The number of values beginning with 4FB can vary. In this example, there are 3 of them, it could be one, there may be 10. However, they will be always between the ' ID (s):' and the ' URL (S):'

    Invoice number (901825004) will always be only one and the same position, but can have different lengths.

    2. I then need to format it so that it looks like:
    Invoice_Number        Archive_ID
    901825004               4FB6EB904C561491E1000000AC12A813
    901825004               4FB6EB924C561491E1000000AC12A813
    901825004               4FB6EBB74C561491E1000000AC12A813 
    Any suggestions?

    Published by: dgouin on May 29, 2012 11:25

    Published by: dgouin on May 29, 2012 11:26

    Published by: dgouin on May 29, 2012 11:27

    Published by: dgouin on May 29, 2012 11:27

    Published by: dgouin on May 29, 2012 11:33

    Hello

    Regular expressions a great help with this stuff:

    WITH     got_doc_id_list     AS
    (
         SELECT     x_id
         ,     REGEXP_REPLACE ( str
                          , '.*Invoice: *([^ ]+).*'
                          , '\1'
                          , 1
                          , 1
                          , 'n'
                          )     AS invoice
         ,     REGEXP_REPLACE ( str
                          , '.*Document ID\(s\):(.*)URL.*'
                          , '\1'
                          , 1
                          , 1
                          , 'n'
                          )     AS doc_id_list
         FROM    table_x
    )
    ,     cntr          AS
    (
         SELECT  LEVEL     AS n
         FROM     dual
         CONNECT BY     LEVEL <= 10     -- Max number of doc_ids possible in one str
    )
    SELECT       d.x_id
    ,       d.invoice
    ,       TRIM ( REGEXP_SUBSTR ( d.doc_id_list
                                  , '[^,]+'
                          , 1
                          , c.n
                          )
                )    AS archive_id
    FROM       got_doc_id_list  d
    JOIN       cntr             c  ON  c.n  <= 1 + LENGTH (d.doc_id_list)
                                                - LENGTH (REPLACE (d.doc_id_list, ','))
    ORDER BY  x_id
    ,            c.n
    ;
    

    It works Oracl 10.1 (and higher). In Oracle 11, there are new features of regular expressions which can make it a little simpler.
    I guess that your data are pretty well trained. For example, I assume that there is always something (not counting the white spaces and commas) after ' ID of Document (s): "and before"URL", and that the ID never include the substring"URL"." If these assumptions are false, then the same basic approach will work, but the details are a little messier.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
    Point where the above query was to produce erroneous results, and explain, using specific examples, how you get these results of these data in these places.
    Always tell what version of Oracle you are using.

  • How to set the value of a field from the LOV of another field.

    I'm trying to figure out how to set the value of a field (P_PROGRAM) to the value of another field of based lov (P_STATE).

    The P_PROGRAM field is a hidden field. The P_STATE field is a required field and is based on a list of values for the State Codes.

    When a user selects the State to P_STATE, the field of the P_PROGRAM should be set to this value, as well.

    I tried different ways to get there via a function call on the post for the calculation of the field P_STATE, defining the source P_PROGRAM to the value of the page item P_STATE put varialbles, creating a process before SENDING, and they all still come back as having a NULL value for P_PROGRAM, therefore impossible to create the file in the db as the PROGRAM is a mandatory field in the table.

    Can you please help? Thank you, Laura

    Laura,

    It is always helpful if you provide information about the Apex version you are using. The Apex 4 you can use Dynamic Actions to achieve this. In earlier versions is possible using processes to submit or javacsripts, as well.

    Heres how you do in 3.x with treatment to submit, to make it work in 4.0 as well.

    1 do the P_STATE ' select list submits the Page.
    2. Add a calculation on the point P_PROGRAM, or write to him assign a value based on a process. The treatment should be OnLoad after the header
    3. If the page does not have an unconditional branch that loops on itself, add a. NOTE: The direction must be the last branch (larger sequence number) and should have checked "Save Session State".

    This is what will happen
    a. when the State is selected Page will be submitted
    (b) it will take the unconditional branch to himself and save the value of P_STATE
    c. the calculation process / fills the value of the P_PROGRAM element when the page reloads

    Kind regards

  • Creating a function and passing the value of the query

    I have what I thought, it was a pretty easy to resolve the situation: I want to concatenate two fields of the query, if the 2nd is not empty.

    I created a function:

    < name cfargument = "q1" value = "#query.q1 #" / > "
    < name cfargument = "q1a' value =' #query.q1a #" / > "

    < CFSET variables.myPunct = ":" > "
    < cfset variables. ResultVar = "" >

    < cfif QNE Trim (arguments.q1) "" > "".
    < cfset variables. ResultVar =' #arguments.q1 # ">"
    < / cfif >

    < cfif QNE Trim (arguments.q1a) "" > "".
    < cfif variable. ResultVar NEQ "" > "".
    < cfset variables. ResultVar ='#variables. ResultVar & variables.myPunct # ">"
    < / cfif >
    < cfset variables. ResultVar ='#variables. ResultVar & arguments.q1a # ">"
    < / cfif >
    < variable cfreturn. ResultVar >

    It's basically just the example they provide in online education, with the names have been changed.

    In the strip of the details of my report, I have an expression builder containing field: report.mytestfunction)

    When I run the present, I get: Q1 element is not defined in the ARGUMENTS.

    I tried this ninety different ways (literally). It seems very clear to me that the query.q1 (Incidentally, none of the results of the query) are NOT passed to the function. I tried to make the expression: report.mytestfunction (query.q1). I tried to create an input parameter.

    The documentation on this is ridiculously limited, given that the ability to implement conditional logic is entirely dependent on the 'function', I can say. I can in no way to get the function of interface with the query results. If the value fixed values in the service, rather than trying to use query variables, it shows very well.

    Any ideas?

    Have you tried to remove the attribute "value" of your cfargument tag? The way I see it, you should have:


    ... rest of function...

    And then you have to call it with: report.mytestfunction (query.q1, query.q1a)

  • How do another field the value of a field in a form? As my image shows.

    Mr President.

    How do another field the value of a field in a form? As my image shows.

    I want that when a user enters the value credit then it also presents credit () 1.

    As below

    CREDIT.png

    concerning

    public void setCredit(String value) {
            setAttributeInternal(CREDIT, value);
      setCredit1(value);
    }
    

    Define autosubmit = true for the first column of credit.

    See you soon

    AJ

  • It is possible to compare the contact fields based on the value of data updated?

    Hi all -

    I would like to run a filter and compare my contact fields if the value in a field has been updated or changed.

    for example if the data in the "first name" value changes to be empty to have a value, which would respect the requirement.  Also if "phone number" 123-456-7890 to 999-000-0000 that would also meet the requirement.

    Did anyone done this before?  Any ideas of how to implement?

    Any contribution is appreciated.  Thank you!

    If that's what you're talking about, there is no trace of audit in Eloqua.

    It will be great if Oracle can verify the critical fields.

    The solution is to create to the top of the field in another area, so when it changes, you can compare the values.

    Good luck

  • [ADF, JDev12.1.3] How to get programmatically the value of a field of VO of detail while accessing the master istance VO?

    Hallo,

    I have a master VO based on entities and a retail entity based VO to which JDev automatically created a link display (1 to 1 relationship).

    In the request Module I programmatically access MasterVO and I would like to get the value of a field of DetailVO...

    ViewObject vo = getMaster1();
    RowSetIterator iterator = vo.createRowSetIterator(null);
    iterator.reset();
    if (iterator.hasNext()) {
      MasterVORowImpl row = (MasterVORowImpl) iterator.next();
      System.out.println(row.getField1);
      System.out.println(row.getField2);
      // ...
      System.out.println( <DetailVO.Field1> ); // How to...?
      // ...
      }
    iterator.closeRowSetIterator();
    

    How can I achieve this?

    Thank you

    Federico

    In MasterVORowImpl should be getter for the detail rows (if you selected "Include the accessors" option when you generated class MasterVORowImpl).

    Dario

  • ([JDev12c, ADF] 1) how to get the value of a field of the line currently selected in question 2) af:table: flowScope

    Hallo,

    How can I get the value of a field in the row that is currently selected in an af:table?

    I need to pass this value to a setCurrentRowWithKeyValue who took the record to display in another (by a button) called page:

    Limited workflow

    Page1 - goToPage2-> setCurrentRowWithKeyValue-> PAGE2

    I defined a managed bean flowScope for the workflow in which I created the variable 'CodeToSetPage2Row '.

    I will store the value of the field for the selected line in this variable so that I can move on to the setCurrentRowWithKeyValue.

    Could be this method OK? Ore is there any good practice to achieve this goal?

    The managed bean flowScope used to go to the stubborn task may take some values from the outside?

    The workflow defined will be executed in a dynamic region.

    Thank you

    Federico

    Federico, you cannot use a flow variable scope for this page. The region has no access to the bean. You must use a workflow for this parameter.

    To get an attribute of the currently selected line you make slide data vo of control on the page attribute. This will create a link attribute for this attribute. Once this link exists, switch to source mode and remove the component that you do not want.

    The framework passes the value of the current row in this affair of the attribute (table should be in single selection mode).

    Click on the button, you switch the binding of the attribute for the setting of task flow using a setPropertyListener.

    In the workflow, you call the setCurrentRowWithKeyValue with the parameter of workflow as the default activity.

    Timo

  • [JDev12c, ADF] How to get the value of a field from the selected line in af:table and...

    Hallo,

    I want to double click on a line of an af:table to call a page that displays a form (based on a View object) with the details of the selected line.

    I need to go to the second page the value of a field on the line that is selected on the first page.

    How can I do this? In particular, how can I get the value of a field from the selected line? How can I call the second page on double-click on the af line: table?

    Thank you

    F.

    Why would user, you need to pass a value of the line to the shape?

    The framework selects the line you want to display in the form. All you have to do is to show the form with the selected line. It is the framework automatically as long as you use e vo even the same data control.

    Timo

    Post edited by: Timo Hahn
    And the handling double-clicks is described here http://www.oracle.com/technetwork/developer-tools/adf/learnmore/56-handle-doubleclick-in-table-170924.pdf

  • Change the value of a field when the value of another field changes.

    I have a level of order form with a number of areas where the quantity (number) is typed in they are labeled qty1, 2 and so on.

    Some of the items on the order form attract additional fixed a load which is shown in a separate field call it addcharge.

    If qty1 has a number entered it attracts an additional cost and the addcharge field changes the value of zero to say 1

    If 2 has a number entered without extra charge applies

    If 3 is a number entered without supplement applies

    If qty4 has a number it attracts an additional cost and the addcharge field changes the value of zero to say 1 or if the previous qty1 has already changed the addcharge to 1 field, remains at 1.

    If qty5 has a number entered it attracts an additional cost and the addcharge field changes the value of zero to say 1 or if the previous qty1 and qty4 has already changed the addcharge to 1 field, it remains 1


    It seems to me that some "if else" enabling javascript is necessary in the sense of "If qty1 field is greater at 0 addcharge field is 1"and I guess the script must be placed in each field which attracts addcharge.»»»


    Can anyone help with the script please.


    Thanks Eric

    Please sign the right answer. Thank you.

  • How to hide a field based on the value of a field of a different subform - controls null does not work!

    I use Javascript to define actions. I need to hide a text field, if the value of a field in another subsidiary form is zero.

    -J' tried to check the value in the other field NULL - does not work

    -J' tried affecting a variable str2 where I know that the value in the other field is available, then checking this variable when I initialize the text field - does not work

    What Miss me?

    Hello.

    Try this in the form of native void, referring to the text field (X).

    If (this.rawValue = 1)

    {

    X.Presence = "visible";

    }

    ElseIf (this.rawValue = null)

    {

    X.Presence = 'hidden ';

    }

Maybe you are looking for