Value derived — concatenated string fields

Hi all

could you please give an example how can I set a value derived from a string field, so that it is values concatenated from several other fields of type string.

Basically, what I want to do is to collect all the keywords in a field.

Kind regards
Gulnara

Hey guliflower,

With the help of a comprehensive rule that I have validated only that it works for me:

first the pseudocode:

If CERTAIN CONDITIONS

value = variable1 & 'separator' & variable2

endif

If you are a derivation based on string values in the localdata (e.g. of the metadata contained in a checkin form) then the "#active." FIELDNAME"works well
Otherwise, you will need to write additional idoc for the channels that you want to concatenate. The "&" is the operator of concat idoc, as defined in the reference guide of the IDOCScript (http://download.oracle.com/docs/cd/E10316_01/cs/cs_doc_10/sdk/idoc_script_reference/wwhelp/wwhimpl/js/html/wwhelp.htm)

Here's the working example that I used on my test system. I pulled the doctype string and the string of delimited by a pipe in the comments field security group.

Here's the code I used:

<$if #active.ddocauthor="" like="" "sysadmin"$="">
     <$dprDerivedValue=#active.dDocType &"|"&="" #active.dsecuritygroup$="">
<$endif$>

It derived from the string ' document | public' in my field of xComments.

This is interpreted as server-side:
If the current user on this request is "sysadmin" and then take the string value of the field dDocType add a pipe ' | ' character and add the string value of the dSecurityGroup field and then place all of the contents in the xComments field.

hope that helps,
Warmly,.
Billy Cripe
Fishbowl Solutions

Tags: Fusion Middleware

Similar Questions

  • uninitialized value in concatenation (.) or string $compressedMem

    Team

    I have ESXi with vCenter 5.0 5.  Running the script from the VMA 5.

    generates the report, but I get the following error twice during the execution of the script:

    "Use of uninitialized value in concatenation (.) $compressedMem. (or rope to ligne./vmwarevSphereHealthCheck.pl 994. »

    Any ideas?

    See you soon

    No, it won't be applicable to post earlier.

  • Function - return multiple values in a concatenated string

    Hello

    Is it possible for a function return a concatenated string (combining more than one number). I'm trying to return the purchase by the introduction and invoice_id number and code order number, but an invoice_id can have several PO with the same code number. I want to concatenate the PO numbers with commas, for example

    10124, 10090, 10987

    At the present time, the function returns NULL for those cases that have more than one purchase order number.

    Thank you
    func_get_po(i.invoice_id, cc.code_combination_id) "PO No",
    func_get_po_requester(i.invoice_id, cc.code_combination_id, func_get_po(i.invoice_id, cc.code_combination_id)) "PO Requester",
    

    Of course, this can be done without any problem.
    If it returns NULL, then you must debug function and check the operating logic. I know that it will take a little of your time, but not problems with the logic of syntax and concatenation.

  • Value derived in order

    Hello

    I want to do a similar action in this post. https://forums.Oracle.com/message/9504549#9504549

    I have 2 xName xUrl, custom metadata fields. XName in shape of consignment will be user input.

    I want to do xUrl = "Some public Static Text" + xName (automatically after logging)

    I tried that in the area of derivatives of the State. I tried the below codes.

    < $dprDerivedValue = "Some Text" & xName $>

    The top of the post code does not work for me (xUrl is blank after logging). I created another options list xUrlOptions and some values entered

    < $dprDerivedValue = getFieldViewDisplayValue ("xUrlOptions", "UrlOptions", xUrlOptions) & xName $>

    I don't know, his work for the default values, but I get empty values even for codes below in the calculated values.

    < $dprDerivedValue = $ dDocType >

    Please help me... I'm working on Webcenter content 11.1.1.5.0.

    Thanks in advance.

    A few questions:

    one) how your rule is defined? If you want to use a value from another custom field input, you may need to make your globalrule. You can also adjust the condition of activation of rules so that it applies only to the check-ins and desired items, it applies to. Note that in your submitted profile will very probably hidden, with the overall rule, setting the value of the field once a user submits the registration form.

    (b) where your code? Make sure you use the "inspired" sections

    A recommendation: start with the fixed string, once you run change the idocscript to your needs

  • Get the value of the title field

    My question is simple. Here's my scenario.

    I have a check for profile, with an editable title field and a list of options. The user selects a value in the option list and entered a title. When he submits the form, the title of the content check-in must be derived from the value of the option list + the value of the field title. The derivative title must be the concatenation of the value of the option list, and the value of the field title.

    My question is how to get the value of the field title using the script of the OIDC? I have a rule with the field of dDocTitle and its derivative field, I have an idoc script that displays the value of the option list in the spin-off title field. I only need to concatenate the value of the editable field title entered by the user.

    Thank you. I use UCM 10 g.

    This can be done with rules and profiles of the school boards and derived values.

    If the user enters a title in the field of dDocTitle (this is mandatory) and if you have another field of metadata with a menu drop-down (as conceptual dDocType) you can use the Configuration Manager (rules and profiles) take the value of dDocTitle and dDocType and when checked (it not shown to the user after logging) she'll concatenate.

    in the custom box (you may need to do this because of the wrong inserts quotes with our variables) make sure that it looks like this
    <$dprDerivedValue=dDocTitle &="" ddoctype$="">

    Notes that may be of interest
    How can define you a value derived in a rule using Idoc Script to call a service? (Doc ID 833953.1)
    Who wins: rule or a set of default metadata about a file? (Doc ID 798653.1)

  • Concatenation of fields of big kid in a single line

    BEEP: 10.1.3.4.1
    Siebel: 8.1.1.2

    Hello!

    I'm new to BEEP - we are currently migrating Siebel operate above BEEP reports as part of an upgrade of Siebel 8.1.1.2.

    I get my head around BEEP and translated all the features to operate successfully to the new platform. There is one thing, however, that escapes me!

    We report against order attributes:

    Parent: order
    Child: Billing for the order
    Big kid: attribute of element order

    The XML of the BEEP report entry will have a head of parent and many children and grandchildren.

    There is a field in children:

    Product

    There are two fields in the great child:

    Name
    Value

    I would like to summarize across a single line, the concatenation of all the grandchildren 'Values' for the specific 'Name' fields in records of children with a specific field "product."

    For example:

    -Parents: car
    -The product child: door
    -Big kid name: color
    -Child large value: Blue
    -Big kid name: complete
    -Great value kids: metal
    -The product child: door
    -Big kid name: color
    -Child large value: Red
    -Big kid name: complete
    -Great value kids: metal
    -The product child: seats
    -Big kid name: color
    -Great value child: yellow
    -Big kid name: complete
    -Child large value: leather

    I want to a concatenated string values for the color of the door:

    Blue, red

    We have to operate in subclassing data stream Fetch and loop on the child and child large stream.

    Any thoughts on how to achieve this in TONE?

    Thank you very much in advance for your help!

    Hi mroshaw76,

    This should be eazzzzyy :)

    
      --- this will display the car
    Colors of the  : 
    
    

    Note the name of the element are case-sensitive.

  • Get the field to remain Virgin until the user enters the value in the previous field used in the calculation

    I work on a PDF form and am stuck on one of my calculations. There are two fields 'desired Start Date", which is a date entered by the user. The "desired end" date is one year from date entered by the user. I figured out - however, before the user enters a date, I want this field remains empty. Currently, it fills with 01/00/000. How can I get this field to calculate not unless a date is entered by the user? So far, I tried this but can not get the blank to stay:

    If the field 'Desired Start Date' is empty, leave 'to' field blank

    var myStartDate = new Date (this.getField("Desired_Effective_Date").value);

    If (((myStartDate == 0) & & (getField("myStartDate").valueAsString = "")) {event.value = "";})

    If the field "Desired Start Date" is an effective date, use the date to calculate one year after the date of entry.

    }

    else {this.getField("to").value = util.printd ("mm/dd/yyyy", new Date (myStartDate.getFullYear () + 1, myStartDate.getMonth (), myStartDate.getDate ()))}

    Try the following than the calculation script custom field "to".

    Get the value of the date field beginning

    var sStartDate = getField("Desired_Effective_Date").valueAsString;

    If the start date field is not empty...

    If {(sStartDate)

    Converts a date in a date object string

    Kai = util.scand ("mm/dd/yyyy", sStartDate);

    Add a year

    oDate.setFullYear (oDate.getFullYear () + 1);

    Set this field to the calculated date value

    Event.Value = util.printd ("mm/dd/yyyy", anyway);

    } else {}

    This field blank because the input field is empty

    Event.Value = "";

    }

    You may need to change the date format "mm/dd/yyyy", I used to match the formats of date fields.

  • How to set the value derived in the bean messagechoice

    Hello

    I have a requirement to set the value derived in messagechoice.

    Need help in this

    Kind regards

    Kalai

    Good answer:

    String stmt =

    "Start: 1: = xxcust_eam_oaf_extensions.get_wo_priority(:2,:3,:4); end; « ;

    CallableStatement cs = txn.createCallableStatement (stmt, 1);

    try {}

    cs.registerOutParameter (1, Types.VARCHAR);

    cs.setString (2, OrganizationId);

    cs.setString(3,RequestNumber);

    cs.setString (4, consequences);

    CS. Execute();

    Priority string = cs.getString (1);

    pageContext.putDialogMessage (new OAException ("priority value:" + priority));

    If (priority! = null) {}

    pageContext.putDialogMessage (new OAException ("inside the loop if"));

    String query = "select lookup_code from the mfg_lookups where lookup_type ="WIP_EAM_ACTIVITY_PRIORITY"' and sense =: 1 ';"

    PreparedStatement stmt1 = conn.prepareStatement (query);

    stmt1. SetString(1,Priority);

    ResultSet resultset = stmt1.executeQuery ();

    If (resultset! = null) {}

    While (resultset.next ()) {}

    If (resultset.getString (1)! = null) {}

    String lookupcode = resultset.getString (1); here for the extraction of the column in the query

    OAMessageChoiceBean xxPriority = (OAMessageChoiceBean) webBean.findChildRecursive ("Priority");

    xxPriority.setValue (pageContext, lookupcode);

    }

    }

    }

    }

    }

    {} catch (SQLException e1)

    throw new OAException (e1.getMessage (), OAException.ERROR);

    }

  • createDataObject in livecycle of value of a text field

    Hi Experts,

    Can someone help me story a data value of a text field createDataObject object. Content of the text field is multiline.

    These two simple lines are works fine in acrobat console, but not under a key click livecycle event.

    var cMyC = "sample string";

    this.createDataObject ("test.txt", cMyC);

    Please suggest.

    Concerning

    Arvind

    In LiveCycle Designer, you need to replace this with event.target to use Acrobat script methods.

    var cMyC = "sample string";
    event.target.createDataObject("test.txt",cMyC);
    
  • Text editor enriched ORA-06502: PL/SQL: digital or value error: character string buffer too small

    Hello

    I have apex user 4.2.3 with enterprise database edition 11, I page include RICH TEXT EDITOR, when I add data to this text and save it will record successfully and when I try to view this information in another page I see all the data, as expected, the problem when I try to go to the same page as RICH TEXT EDITOR error message apper ORA-06502 : PL/SQL: digital or value error: buffer string too small, I see this link https://forums.oracle.com/thread/2461151?tstart=0 but I don't know how it solve it, the problem is made data at the point of the rich text editor.


    Any suggestion?


    Thank you

    Thanks for the reply,

    Its standard form with text rich field, my question she same as link above I added before

  • Create a concatenated string of attributes on Multiple Instances of the entity

    Hello world

    I wonder if someone has met this challenge, or ideas. We have been asked if OPA could produce a string containing the concatenation of the values of an attribute of text stored on multiple instances of an entity. The number of instances is variable, generally.

    Example: Assume that the attribute is "DayOfWeek", and we have an entity called "Appointment", with the authorities:

    appointment_1 (DayOfWeek = 'Monday')

    appointment_2 (DayOfWeek = 'Thursday')

    appointment_3 (DayOfWeek = 'Sunday')

    ... we need produce a string "AllAppointmentDays" = "on Monday, Thursday, Sunday.

    We don't think that this is possible without either: (a) an external system to generate the resulting concatenated string of the output, or (b) modules with the command of the approach to read the white paper Oracle in Nov 2012 (approaches to limits, thresholds and preferences), combined with hard-coding and the constraints on the length of the string.


    I was wondering if there was a better way to do it without external script or forced / hardcode.

    Thank you

    -Patrick

    I don' t know that an external implementation would be easier, but it could be more effective if well written.  Internal or external, you must decide how you want to classify or ordering entities before concatenation.  The order must be absolute (i.e. without fasteners).  Policies to 'solve' the first entity out of string and the string output of the policy to concatenate a string to produce this entity = the entity 'before' + ', ' + attribute of the entity are fairly simple.

    I guess the answer is: it is not necessarily a better way to do it in OPM and I don't think that there are constraints, or a more effective solution is necessary unless you already know you will work with a very large number of entities or very long strings.

  • Make a mandatory or optional field according to the value in the other field

    Hello

    I added a new location of the merchant class just under the name of merchant in the fresh details in iexpense page. I want to make this field option or required depending on the value selected in the field Type of expense.

    If Type of expense is like mileage so merchant should be mandatory otherwise in option.

    I found controller associated with this page is DetailsPageGlueCO and here is the code that I am trying to extend DetailsPageGlueCO.

    package oracle.apps.ap.oie.entry.lines.webui;
    Import oracle.apps.ap.oie.entry.lines.webui.DetailsPageGlueCO;
    Oracle.apps.fnd.framework.webui import. *;
    Import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    Import oracle.apps.fnd.framework.OAException;

    SerializableAttribute public class XXDetailsPageGlueCO extends DetailsPageGlueCO
    {
    ' Public Sub processFormRequest (pageContext OAPageContext, OAWebBean webBean)
    {

    super.processFormRequest (pageContext, webBean);

    Try
    {
    String ExpReportType = pageContext.getParameter ("ExpTypeChoice"); take the value of the list of ExpTypeChoice

    If (ExpReportType.toLowerCase () .indexOf ("mileage")! =-1) / / check if the value selected in the list ExpTypeChoice is of type mileage
    {
    Code to intercept the value in ExpTypeChoice list, and then newly added fact XXMerchantLocation required field?



    }
    } catch (System.Exception e)
    {
    throw new OAException ("you must enter merchant location");
    }
    }
    }

    Pls. suggest a piece of code in the section / / Code to intercept the value in ExpTypeChoice list, and then fact newly added XXMerchantLocation required field?

    Published by: yannick bigot on January 2, 2012 06:42

    Bigot,

    To make a required field on the selection, you must join a SPEL with the bean and make true or false based on your requirement.

    See article PPR of the developer's Guide.

    Kind regards
    GYAN
    www.gyanoracleapps.blogspot.com

  • Another REGEXP question: how to extract multiple values from a string

    Hi, how can I retrieve multiple values to a string with RegExp with Oracle SQL constructs?

    Have looked at the various examples, I cannot understand this.
    the following Sql code
    select
       regexp_substr(sessie."rollen", 'CN=A_role') "A_role"
       from ( 
    select '
    CN=A_role,OU=a_org_unit,OU=another_org_unit,DC=bz,DC=ad,DC=min,DC=local
    CN=Another_role,OU=some_org_unit,DC=bz,DC=ad,DC=min,DC=local
    CN=Users,OU=Dep,DC=bz,DC=ad,DC=min,DC=local
    '   "rollen" from dual
    ) sessie;
    Returns CN = A_role.
    I want him back all of the CN = concatenated values with a semicolon and stripped of the CN = bit.
    So: A_role; Another_role; Users .

    Any help would be much appreciated. Here I use database 11g 11.2.0.2.0.

    Does anyone have an idea how to do this in SQL?

    best regards Mike

    Hello
    If using Oracle 11 g

    with tst
      as (select   'CN=A_role,OU=a_org_unit,OU=another_org_unit,DC=bz,DC=ad,DC=min,DC=local,'
                 ||'CN=Another_role,OU=some_org_unit,DC=bz,DC=ad,DC=min,DC=local,'
                 ||'CN=Users,OU=Dep,DC=bz,DC=ad,DC=min,DC=local' as rollen
            from dual
          )
    select listagg(sub, ',') within group (order by rn) as res
      from (select regexp_substr(rollen, '(CN=)([[:alnum:]_]+)',1,rownum,'i',2) sub, rownum rn
              from tst
           connect by level <=length(rollen)
           )
     where sub is not null       
    
  • Send one of the 5 checkbox values to a text field

    I try to send the value of one of the six checkboxes checked to a text field and just cannot get by.  Can someone help me.

    Here is the script I tried to work with.  I know it's fake because it does not work.

    var architect = getField ("Chkbx Arch")
    var engineer = getField ("Eng Chkbx")
    var landscape = getField ("land ChkBx")
    var inner = getField ("Int Chkbx")
    var other = getField ("another Chkbx")

    If (architect == 'Architect') {}
    Event.Value = "Architect";
    }
    ElseIf (engineer == 'Engineer') {}
    Event.Value = "Engineer";
    }
    ElseIf (landscape == "Landscape Arch.") {}
    Event.Value = "Landscape Architect";
    }
    ElseIf (inside == 'Interior Designer') {}
    Event.Value = "Interior Designer";
    }
    Else if (other == 'Other Designer') {}
    Event.Value = 'Other Designer';
    }

    Have you watched the JavaScrpt console to see if you get any errors reported in your script?

    JavaScript is a language "object" oriented. You must identify an object, and then access properties or methods of the object. 'event' is an object and it has a property of 'value '. If the code 'event.value = 'string';' sets the value of the current event to the string "string". The "' it's the current PDF document. "getField" is a method of that object that gets a field named object. Once you have this object, you must use the 'value' property to get the value of the named field

    .

    If you want the boxes to be exclusionairy, one authorized selection, you should give them all the same name and assign different values for export.

    function() {return A.apply (null, [this] .concat ($A (arguments)))}

    var architect = this.getField("Arch_Chkbx").value;
    var engineer = this.getField("Eng_Chkbx").value;
    Landscape of var = this.getField("Land_ChkBx").value;
    internal var = this.getField("Int_Chkbx").value;
    var other = this.getField("Other_Chkbx").value;

    else event.value = ";

    If (architect == 'Architect') {}
    Event.Value = "architect."
    }
    ElseIf (engineer == 'Engineer') {}
    Event.Value = "engineer."
    }
    ElseIf (landscape == "Landscape Arch.") {}
    Event.Value = "landscape architect";
    }
    ElseIf (inside == 'Interior Designer') {}
    Event.Value = "Interior Designer."
    }
    Else if (other == "Other Designer") {}
    Event.Value = 'Other Designer';

  • By assigning a value to a text field not working PHP/javascript?

    I have a site to someone else coded, where a text field does a value that is assigned.

    Both
    Form1.textfield3.value = form1.textfield1.value;
    and
    Form1.textfield3.value = "99";

    not work, and the field is left blank.

    This same code works on Internet Explore (Win and OSX), Safari, Chrome and Opera. It does NOT work on Firefox 8 or 9.01 (Win and OSX) or 3.6.25. He used to work on an older Firefox, we had (unknown version).

    JavaScript is enabled; is there anything else we can check?

    If you check the error in Firefox (Ctrl + Shift + j) Console, you will see "form1 is not defined. This is because Firefox converts automatically form1 in reference to < form = "form1" name >. Instead, you must change the code a bit.

    You can fix the above error starting each function where you refer to form1 with this:

    Form1 = return ["form1"] var;

    However, probably just move the error to the next part of the notation (for example, textfield3). The proper way to refer to the value of a form field named is:

    document. Forms ["Form1"]. Items ["textfield3"]. Value

    or if you have set form1,

    Form1.elements ['textfield3'] .value

    If you have a few changes to make. Not sure if there are shortcuts.

    This forum focuses on the care of the end user. You can find more help web development on the mozillaZine Web Development Council. Separate forum, separate registration.

Maybe you are looking for