How to get the workflow rule to copy a picklist value in another field?

I'm trying to copy the selected value in a list, which we will call "OldField" in the accounts and duplicate exactly in another version of this list of choices, that we will call "NewField" (with all the values in the drop-down list exactly copied). OldField is a required field, but this isn't NewField.

NewField is configured with a default value of OldField, and I created a new rule of workflow as follows:

* (IfNull (PRE ("< NewField > '"), 'Y') = 'Y') OR (PRE ("< OldField > '") <>[< OldField >]) *.

When this condition is met, I created an action to a value equal to NewField * [< OldField >] *.

When I edit an existing account, it copies the value very well, but when I create a new account record and click on save button duplication, fails to occur.

Does anyone have any advice as to what I should do to correct my workflow rule?

Published by: [email protected] on April 3, 2009 08:04

Add the default value to the new field and check the default post.

Tags: Oracle

Similar Questions

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

  • How to get the print page numbers in a report based on another report

    Hello


    I have a requirement in which I need to print the page based on another report number
    example my game application has 3 reports

    1 report prints the pages 1-100
    Report page no. 2 should start from 101 to 110
    3 report 111-

    Can someone make me please how to do this?

    THX in advance
    Kumar

    Hello

    You can create all report queries three in a single report, create a separate query in the data model and then create the layout in the proper sequence as required.

    If you want to use separate reports only you can try the following:

    In the first report, use the shutter release after report and record the total number of pages of a table as a record.

    In the second report, extract the value stored in the table and add it to the Page No. to get the Page number for the second report.
    Also in the second report use the shutter release after report and update the record created first in the total number of pages + total number of pages of the first report.

    In the third report to extract the value stored in the table and add it to the Page No. to get the Page number for the third report.
    Don't forget to delete the folder created in the trigger after the third report table report.

    I hope this helps.

    Best regards

    Arif Khadas

  • How to get the Max of elements of type datetime value

    Hi all
    I wanted to get the last value timestamp (DateTime data type) of the node list. I have the following xml. In this xml file, I want to get the modifydate element that has the last time stamp via xquery/xpath, it should return me following result 2011-09-29 T 17: 21:17 + 10:00

    < CustomerList >
    < CustomerDetails >
    < Name > Test 1 < / name >
    assets of < status > < / status >
    < modifyDate > 2011-08-20T 17: 21:17 + 10:00 < / modifyDate >
    < / CustomerDetails >

    < CustomerDetails >
    < Name > Test 2 < / name >
    Cancel < status > < / status >
    < modifyDate > 2011-08-29T 17: 21:17 + 10:00 < / modifyDate >
    < / CustomerDetails >

    < CustomerDetails >
    < Name > Test 3 < / name >
    assets of < status > < / status >
    < modifyDate > 2011-09-29T 17: 21:17 + 10:00 < / modifyDate >
    < / CustomerDetails >
    < / CustomerList >


    I tried to use the
    CustomerList/CustomerDetails/modifyDate [not (. < =... / the above - sibling:CustomerList/CustomerDetails modifyDate) and not (. < =... / following - sibling:CustomerList/CustomerDetails modifyDate)]
    But it does not work on the datetime data type.
    Any help in this regard is highly appreciated.

    Concerning

    Published by: user6736659 on Sep 5, 2011 06:15

    Hello

    The following XQuery query should give you what you want:

    max(
     for $i in /CustomerList/CustomerDetails/modifyDate
     return xs:dateTime($i)
    )
    

    For example, by using Oracle SQL:

    SQL> var xmldoc varchar2(4000)
    SQL> begin
      2   :xmldoc := '
      3  
      4   Test 1
      5  active
      6  2011-08-20T17:21:17+10:00
      7  
      8
      9  
     10   Test 2
     11  cancel
     12  2011-08-29T17:21:17+10:00
     13  
     14
     15  
     16   Test 3
     17  active
     18  2011-09-29T17:21:17+10:00
     19  
     20  ';
     21  end;
     22  /
    
    PL/SQL procedure successfully completed
    
    SQL> select xmlquery('max(
      2   for $i in /CustomerList/CustomerDetails/modifyDate
      3   return xs:dateTime($i)
      4  )'
      5  passing xmltype(:xmldoc)
      6  returning content
      7  )
      8  from dual
      9  ;
    
    XMLQUERY('MAX(FOR$IIN/CUSTOMER
    --------------------------------------------------------------------------------
     2011-09-29T17:21:17.000000+10:00
     
    
  • How to use a radio button state to calculate a value in another field

    I produce a registration form that uses radio buttons to specify an accommodation meals and requirements for individual registrants - separate option buttons select the meal (YES or NO) plan and the type of accommodation (NO THANKS, A, B or D).

    I want to ask the State of these boxes to option and, if selected (set), calculate the amount to pay for registration in the related areas of subtotal ( Plan -meals and accommodation).  In other words, based on the costs of $ for YES, A, B and D on a per Member basis, I want to enter an amount of $ in the subtotal fields 'meal Plan' and 'accommodation'.  In the ABSENCE or NO THANKS is selected, no calculation is necessary.

    The form attached, if a given registrant (for example Reg01) chooses to include a meal plan (selected option button M01-Y ), then in the numMEAL subtotal field must increment of $80.  Similarly, if Reg01 wants to book a double room (R01-D) I want to add $268 for the subtotal numROOM field.  It goes without saying that the numMEAL and numROOM fields must reflect the cumulative amount based on the requirements of all listed registered (Reg01 via Reg05)

    Example:  I want to use a FormCalc calculation something like... (If M01 - Y is set then $80) + (if M01 - Y is set then $80) + etc ... to calculate the value of the field numMEAL and any other equivalent expression for the numROOM field.

    Also (but don't feel you have to answer), in the design-time view how to configure to display radio button selections No. or NO THANKS as the default selection (set) such as the other buttons in the PLAN of FOOD groups and the TYPE of ROOM are not selected (not set) - (I think that would correct indications of error that I see).  I managed to configure this radio button state initial for groups TYPE CITIZENSHIP and PAYMENT of the form but can't seem to do for groups of PLAN of MEALS and the TYPE of ROOM .

    Thanks in advance for your help.

    I think this is what you wanted... .view attachment. The problem with multiple selections in Design view is cause-in the name. I changed it to the rooms because it is to be interpreted as a subtraction. You must change them in meal option buttons as well and that will clear up the design problem you mentioned.

    To get the room to add correctly, I changed the value for the room price. Then on the event rentals field calculate I simply add all room radioButtonList. The calculate event fires whenever a room is changed. For meals, I put the code on the RadioButtonList to every meal (just to show you a different technique). You could od it exactly the same way as the rooms but it is up to you.

    Paul

  • How to get the CR/LF in copied text only after each paragraph?

    I am currently getting CR/LF after each line.

    Have you tried to export the file in text or doc format. That could give him what you want, especially if you keep the flow of the text.

  • How to get the value of a particular column column name?

    Hi all

    How to get the column name for a particular column value.
    example:

    create table test (ID number, col2, col3 varchar varchar);

    Insert into test values (1, 'true', 'false');
    Insert into test values (2, 'false', 'true');
    commit;

    I want to choose the name of the data column 'true' with id = 1;

    That is to say) while waiting for answer is "col2". pls help someone.

    This might help:

    DECLARE
       c1 SYS_REFCURSOR;
    BEGIN
       OPEN c1 FOR
       SELECT col2,
              col3
       FROM   test
       WHERE  id = 1;
       --
       FOR c IN (SELECT rownum rn,
                        t2.column_value.getrootelement() name,
                        EXTRACTVALUE(t2.column_value, 'node()') value
                   FROM TABLE(XMLSEQUENCE(c1)) t,
                        TABLE(XMLSEQUENCE(EXTRACT(column_value, '/ROW/node()'))) t2)
       LOOP
          IF c.value = 'true' THEN
             DBMS_OUTPUT.PUT_LINE(c.name);
          END IF;
       END LOOP;
    END;
    
  • How to get the last access to the workflow? (OM, WMS) release 11.5.9

    Hello my friends.

    I am looking for information on how to get the date of the access and the user name who did use some WFs in OM and last WMS.

    If it is through the application or running in the background via SQL for the information is not important to me.

    Could you help me with this?.

    Thank you

    the 'item_type' attribute must match the name of the WF?

    Yes (internal name. For example OEOL).

    The custom of those who will not be affected by the upgrade.

    You must run the query that I provided before to identify if the workflow is used or not.

    For the workflow of order lines, it is intended to be used as you use the order management.

    Kind regards

    Bashar

  • How to get the bar display of title in pixels text length?

    Hello

    Does anyone know how to get the length of the title bar text (in pixels) display?  Just to clarify, that's what I'm looking for:

    I don't see a CVI function for this.  The attribute ATTR_TITLE_FONT for GetPanelAttribute (...) is only valid for the panels of the child which prevents me from using the GetTextDisplaySize (...) to get the size.  Dive into the Windows SDK I can not even find an answer here.  Any ideas?  Thank you.

    Figured out how to do this.  Go to the SDK to get the font properties - is kind of nonobviousness.  But once you have the font properties, you can create a font of meta in CVI, with properties, and once you have the meta font you can use GetTextDisplaySize (...) to get the size.  For any future reference:

    //define a NONCLIENTMETRICS structureNONCLIENTMETRICS ncmtest;//We have to set the cbSize parameter to the size of the passed structure before retrieving it
    ncmtest.cbSize = sizeof(NONCLIENTMETRICS);
    //Get NONCLIENTMETRICS structure
    result = SystemParametersInfo(SPI_GETNONCLIENTMETRICS, 0, &ncmtest, 0);
    
    //copy the title font name to a c-string
    while(ncmtest.lfCaptionFont.lfFaceName[i] != 0)
    {
        thefont[i] = (char)ncmtest.lfCaptionFont.lfFaceName[i];
        ++i;
    }
    
    //null terminate
    thefont[i] = '\0';
    
    //create meta font with title font properties.  lfWeight & 0x700 indicates bold.  CreateMetaFontWithCharacterSet() doesn't recognize DEFAULT_CHARSET so we replace it with VAL_NATIVE_CHARSET(?).
    uir_status = CreateMetaFontWithCharacterSet ("TheTitleFont", thefont, abs(ncmtest.lfCaptionFont.lfHeight), ncmtest.lfCaptionFont.lfWeight & 0x700 ? 1 : 0, ncmtest.lfCaptionFont.lfItalic, ncmtest.lfCaptionFont.lfUnderline, ncmtest.lfCaptionFont.lfStrikeOut, 0, ncmtest.lfCaptionFont.lfCharSet == DEFAULT_CHARSET ? VAL_NATIVE_CHARSET : ncmtest.lfCaptionFont.lfCharSet);
    
    //get titlebar text
    uir_status = GetPanelAttribute (panelhandle, ATTR_TITLE, thetext);
    //get title bar length
    uir_status = GetTextDisplaySize (thetext, "TheTitleFont", &height, &width);
    

    I have a 79 for the duration of the screenshot above.

  • How to get the code produced for my Windows XP disc if I have the drive?

    Acquisition of Product Code Windows XP

    How to get the code produced for my Windows XP disc if I have the drive?  I signed the BONE when I bought it all first, but have no way of knowing if this is the way to receive a copy of the product key.

    Here are some utilities, which will display your product keys:

    Belarc Advisor: http://www.belarc.com/free_download.html
    (He did a good job of providing a wealth of information.
    However may not detect a key to office, then try one of the other two below)

    Also: http://www.nirsoft.net/utils/product_cd_key_viewer.html
    and: http://www.magicaljellybean.com/keyfinder.shtml

    Paid (free demo is available): Recover Keys: http://recover-keys.com/
    "quickly scans your system for more than 3000 + software '.
    and produces a list of software activation keys.

    13 keyfinder programs:
    http://pcsupport.about.com/od/productkeysactivation/TP/topkeyfinder.htm

    J W Stuart: http://www.pagestart.com

  • How to get the description of text box with some HTML &lt; P &gt; tag

    Hi friends,

    I created two point, an element of box P1_RICH_TEXT_FIELD rich text field and a text item field area P1_TEXT_AREA. I created the calculation process to copy the value of P1_RICH_TEXT_FIELD in P1_TEXT_AREA. Calculation works well but contect copy in P1_TEXT_AREA are

    < p >

    Test Test description description < /p >

    < p >

    Test DescritionTest DescritionTest description < /p >

    < p >

    Test DescritionTest DescritionTest description Test Test DescritionTest Test Test Test Descritionhkjhkh < /p > description description description description


    I need to copy with the tag < p >.


    How to get the description of text box with the HTML < P > tag



    Thank you

    Hi Alex,

    Thank you very much. You want very criticle problem for me. Thank you very much.

    Now, there are several tags in the rich text field

    "span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, big, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, b, u, I, Center, dl, dt, dd, ol, ul, li, label, table, caption, tbody, tfoot, thead, tr, th, td" etc.

    How can I move all these in REGEXP_REPLACE (: P1_RICH_TEXT_FIELD, ')

    |

    (", 1, 0, im ') code.

    Thank you

  • How to get the text formatting in the tables

    Dear experts and aid

    For my project, I import an RTF file and then read the data into 3 tables. It works fine when just using the contents of the string of paragraphs. However, the final script should be able to read and to replace the text formatted...
    Why use intermediate tables? Because otherwise I need to swap between two fm-documents (and you can be a part of the book).

    The imported file starts with a certain number of lines separated into two parts by a TAB ("designates a TAB in \x08 FM)
    [[Garneau, 1990 #12]]    »   [9]
    The good article can also be locally as text, e.g. [9]
    Then follow the same (or smaller) number of paragraphs with text formatted like this:
    [9]"D. Garneau, ed., National Language Support Reference Manual (national language Information Design Guide. Toronto, CDN: IBM National Language technical Centre, 1990.

    Is it possible to replace in the body of the function below the next song

      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
    

    with this

      while(pgf.ObjectValid()) { 
        gaBibliography.push(pgf);
        pgf = pgf.NextPgfInFlow;
      }
    

    Do I need a special statement of the gaBibliography range?
    And how to get the right part of the lines as formatted intro thingy in table gaFmtCitsFmt ?

    Currently, I read in the tables as "strings" (function GetText not shown):

    var gaFmtCitsRaw  = [];                           // left column in processed RTF
    var gaFmtCitsFmt  = [];                           // right column in processed RTF
    var gaBibliography= [];                           // bibliography lines from processed RTF
    // filename is something like E:\_DDDprojects\FM+EN-escript\FM-testfiles\BibFM-collected-IEEE.rtf 
    
    function ReadFileRTF (fileName) {
      var nCits=0, nBib = 0, openParams, openReturnParams, newDoc, pgf, pgfText ;
      var TAB = String.fromCharCode(8);               // FM has wrong ASCI for TAB
      var parts = [];
      
      openParams = GetOpenDefaultParams();
      openReturnParams =  new PropVals();  
      newDoc = Open (fileName, openParams, openReturnParams);  
      pgf = newDoc.MainFlowInDoc.FirstTextFrameInFlow.FirstPgf;  // get first pgf in flow
    
    // --- read the temp/formatted citations  
      while(pgf.ObjectValid()) {
        pgfText = GetText (pgf, newDoc);
        if (pgfText.substring (0,2) == "[[") {        // citation lines start with [[
          parts = pgfText.split(TAB);                 // get the two parts of the line
          gaFmtCitsRaw.push (parts[0]);               // Push the result onto the global array
          gaFmtCitsFmt.push (parts[1]);
          pgf = pgf.NextPgfInFlow;
        } else { break }
      }
    
    // --- read the bibliography
      while(pgf.ObjectValid()) {                      // until end of doc
        pgfText = GetText (pgf, newDoc);
        gaBibliography.push(pgfText);
        pgf = pgf.NextPgfInFlow;
      }
      newDoc.Close (Constants.FF_CLOSE_MODIFIED);
    } // --- end ReadFileRTF
    

    The following questions will then be how to change the script of FindAndReplace of Ian Proudfoot for managing text formatted as replacement. I will need to use the copy and paste IMHO...

    Klaus, okay, before pasting, you must assign the TextSelection object at your insertion point.

    // Add a new paragraph after the current paragraph.
    var newPgf = oDoc.NewSeriesPgf (lastPgf);
    var textRange = new TextRange (new TextLoc (newPgf, 0), new TextLoc (newPgf, 0));
    
    oDoc.TextSelection = textRange;
    oDoc.Paste ();
    

    -Rick

  • Forms 6i: how to get the UNC path? SOLVED

    Anyone know how to get the UNC path of in Oracle Forms 6i

    For example, if the user enters an output file:
    j:\Data.txt

    How I translated that UNC path:
    \\serv-123\cfs\data.txt

    Basically, I need to pass the UNC path to a regular DB procedure that later would be to copy an output file at the location specified by the user. "J:" being a network drive mapped, the database server would not be able to copy the file.

    Thank you
    Jim

    It's perhaps easier: read the registry using WIN_API_ENVIRONMENT. READ_REGISTRY. The key is HKEY_CURRENT_USER\NETWORK\\RemotePath.

  • How to get the parameters of the effect in the CEAP?

    Hi all

    I have a problem when I want to export the settings of the effect.

    (I checked the sample project "ProjDumper").

    Yellow: layer

    Red: one of the effect (text)

    Green: the parameters of the effect (I want to export these values).

    export_problem.jpg

    Here is my code:

            // 1. use a loop to find the "Text" effect
         // 2. get all the params from this effect
         A_long iL = 0;
         A_long jL = 0;
         A_long num_effectsL;
         A_long num_paramsL;
         A_char effect_nameC[30] = {'\0'};
         AEGP_StreamRefH streamH = NULL;
         AEGP_EffectRefH effectH = NULL;
         PF_ParamType            param_type;
         PF_ParamDefUnion        param_union;
         // Get number of effects on this layer
         ERR(Suites.EffectSuite2()->AEGP_GetLayerNumEffects(pLayerHandle, &num_effectsL));
    
         for (iL = 0; iL < num_effectsL; iL++) 
         {
              ERR(Suites.EffectSuite2()->AEGP_GetLayerEffectByIndex(g_PluginID, pLayerHandle, iL, &effectH));
              
              if (effectH) 
              {
                   AEGP_InstalledEffectKey     key;
    
                   ERR(Suites.EffectSuite2()->AEGP_GetInstalledKeyFromLayerEffect(effectH, &key));
                   ERR(Suites.EffectSuite2()->AEGP_GetEffectName(key, effect_nameC));
    
                   if (!strcmp(effect_nameC, "Text")) 
                   {
                        // Get number of effect parameters from Text effect
                        ERR(Suites.StreamSuite2()->AEGP_GetEffectNumParamStreams(effectH, &num_paramsL));
    
                        for (jL = 1; jL < num_paramsL; ++jL) // start at 1 to skip initial layer param
                        {          
                             ERR(Suites.EffectSuite3()->AEGP_GetEffectParamUnionByIndex(g_PluginID, effectH, jL, &param_type, &param_union));
                             switch (param_type)
                             {
                             case PF_Param_POPUP:
                                  break;
                             case PF_Param_SLIDER:
                                  break;
                             case PF_Param_COLOR:
                                  break;
                             case PF_Param_CHECKBOX:
                                  break;
                             default:
                                  break;
                             }
                        }
                        ERR2(Suites.EffectSuite2()->AEGP_DisposeEffect(effectH));
    
                        break;
                   }
              }
         }
    

    In the SDK document, it indicates the value of PF_ParamDefUnion should not be used.

    So, how can I get these params in the effect, I put (the green line on the photo)?

    And, if there is any harm in my logic, please let me know.

    Thank you.

    > How do I know what setting is pop-menu, checkbox, or difficulty slider? (You can see the green line in the picture).

    I now just how to get the stream parameter type (type of AEGP_StreamVal: AEGP_OneDVal, AEGP_ColorVal etc.). Pop-up menu, checkbox or fix cursor parameter streams have the same type of workflow: AEGP_OneDVal.

    How to control parameter type you already posted in your code).

    > Shouldn't use a loop to get all the params?

    I also use this loop...

    > Could you please tell more in detail how to use it?

    I don't know what you want to do... I can't say more as written in the SDK.

  • How to get the path or the file name of getChild

    Hey everyone, good day!

    Is - anyone here know how to get the path or the file name of an object inserted into the scene?

    Here's the scenario:

    I am developing a flash application, which allows the user to insert background to the scene to help her browse and select using the FileReference in flash. I inserted some image the user successfully choose, but what I'm trying to make, is that if the user clicks on save, the background image it has chosen will be copied to a different folder on the web (file upload). So I need to know the path and the file name of the background image.

    Here is my AS3 code:

    for (var i: uint = 0; i < container.numChildren; i ++) {}
    trace ('\t|\t' + i +'. \t name:' + container.getChildAt (i) .name + "\t type:" + typeof (container.getChildAt (i)) + "\t" + container.getChildAt (i));
    }

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

    Here is the message trace of the code above:

    |     0 name: instance120 type: object [object Loader]

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

    Any help here? I thank in advance.

    The Loader class has a property contentLoaderInfo (an instance of the class LoaderInfo) that contains information, that you are probably after, including the url of the content that has been loaded...

    Loader.contentLoaderInfo.url

Maybe you are looking for