GREP PROBLEM? Attribute parts of one fields rawvalue to other fileds

I am trying to find a way to divide the rawvalue of an input field into its component words
so if field A has a vlaue of "Julia Alison Child"
i would like to be able to cut that up into Firstname Middlename and Lastname fileds
I susepct it can be done using grep by determining when the first and second spaces occur
and taking everything before that for field onei.e Firstname
everything after that and before the second for Middlename and everythign after the second space for Lastname.
Conseptually it's simpe enough but I cant scavange a workign code sample and my coding isnt up to the job
anyone seen anythign like this before?

Hi,
try this method.
var Input = Textfield1.rawValue;
var NameParts = Input.split("\u0020");
if (NameParts.length === 1)
FirstName.rawValue = NameParts.slice(0,1).toString();
MiddleName.rawValue = "";
LastName.rawValue = "";
if (NameParts.length === 2)
FirstName.rawValue = NameParts.slice(0,1).toString();
MiddleName.rawValue = "";
LastName.rawValue = NameParts.slice(1,2).toString();
if (NameParts.length === 3)
FirstName.rawValue = NameParts.slice(0,1).toString();
MiddleName.rawValue = NameParts.slice(1,2).toString();
LastName.rawValue = NameParts.slice(2,3).toString();

Similar Messages

  • Move values of one field symbol to other field symbol of different structur

    Hi all,
    i need to move values of one field symbol to other field symbol of different structure.
    I need to perform operations like MOVE-CORRESPONDING on two field symbols of different structure.
    How can i achieve this?
    field symbol 1 have 2 field and field symbol2 have 4 fields....
    Best Regards,
    Vijay.

    Hi,
    You can use -
    MOVE-CORRESPONDING <struct1> to <struc2>.
    In this case it will move the contents of the components from struct1 to struct2 that has identical names.
    You can refer this link also-
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3260358411d1829f0000e829fbfe/content.htm
    Regards,
    Sujit

  • How to diable only one field enabled and other fields disabled for one user group?

    Hi,
    I have a form contains many fields. A group of users can add items using that form.
    As per the user requirement I have created a filtered view and that filtered view can be seen by some other sharepoint user group but as per their further requirement the new sharepoint user group is only allowed to update Remarks field. All other fields
    should be disabled for them.
    In my idea, I have to create multiple forms and in one of it except Remarks field all should be disabled but I am unable to assign multiple forms to a single list.
    Or how to make Remarks field enable to this user group and for other admin user group all fields could be enabled.
    Hope I have expressed my question correctly.
    Any solution would be appreciated.

    There is no Out of the Box way to set permissions on each column, primarily due to the performance impact. The following thread provides some options,
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/c0794232-9bab-4cea-91d8-f311a793a863/how-to-set-column-wise-permission-in-sharepint-list-in-sharepoint-2010?forum=sharepointadminprevious
    Dimitri Ayrapetov (MCSE: SharePoint)

  • XSLT List View Web part with Inline Editing changing value for one field changes the other lookup field

    Hi
    It's a bit of a weird one. In an XSLT List View web part when Inline editing is enabled if I change the date column, it changes the lookup field column as well. This behavior only occurs if the lookup list has more than 20 entries. Below 20 and we are
    OK.
    Let me explain by example:
    MileStones List - Having more than 20 items
    Tasks List - having a lookup to the Title field from MileStones list. Also having a due date field.
    Simple web part page with one XSLT List View web part for Tasks having inline editing enabled.
    When I edit the first record's due date and press enter (which saves the changes and moves onto next record) and change the due date on second record without even touching the MileStone field. Press enter to commit changes and you see the milestone changing
    on first record!
    The wierd thing is that if the MileStone list has less than 20 items all works as expected.
    Any pointers will be appreciated
    Thanks

    Hi,
    This is a known limitation when working with complex fields like Lookup field.
    A workaround is that we can avoid using the inline edit feature when there are
    complex fields in a list.
    You can take a look at this KB from Microsoft Support to get more details:
    http://support.microsoft.com/kb/2600186/en-us
    A similar thread for your reference:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/3d369611-ee79-4b5c-86bb-c0f3878cd746/standard-list-view-with-inline-editing-lookup-column-copies-preceding-or-following-items-related?forum=sharepointgeneralprevious
    Thanks
    Patrick Liang
    TechNet Community Support

  • Can we sort one field based on other field in messsage mapping !!

    Hi Folks,
    I have got source xml with couple of Vendors, Vendors has got promotions on different products with different dates. If I sort date field, product quantity is not sorting. How Can I sort both fields at the same time, if I sort Promotion date field in ascending order, the product quanitity has to sort respectively?
    Any one can help in this please , any links are examples etc..
    Kind Regards
    Thanks in advance.
    San

    Hi Folks,
    I have tried with this function SortbyKey, it always throuing exception. That's the reason I came to you guys. Please have a look following mapping
    ZY2K_DATE    ----> Remove Context -->
                                           Sortbykey  -----> Condition etc.,
    ZA02_QTY   -----> Remove Context -->
    if I try to see display queue on Sortbykey  I am getting ' Exception'
    Exception:[com.sap.aii.mappingtool.tf7.FunctionException: Queues have different lengths in function sortByKey] in class com.sap.aii.mappingtool.flib7.NodeFunctions method sortByKey[[Ljava.lang.String;@5be18f1d, [Ljava.lang.String;@357ae80b, SortComparator.CASE_SENSITIVE, SortOrder.ASCENDING, com.sap.aii.mappingtool.tf7.rt.ResultListImpl@1818459b,
    Source
    <ROOT>
    ...<OUTPUT>          - - - -       0..unbound
    .......<Group_LIN>    - - -        0..unbound
    ..........<Group_ZA>  - - -       0..unbound      
    ..............<D02_ZA>  - - -        0..unbound
    ..................<ZA01>QD</ZA01>
    ..................<ZA02>35.0</ZA02>
    ..................<ZA03>CT</ZA03>
    ..................<Z_Y2K_DATE>20100723</Z_Y2K_DATE>
    ..............</D02_ZA>
    ...........</Group_ZA>
    ........</Group_Lin>
    ....</OUTPUT>
    Target
    ProductDemandInfluencingEventNotification  0..unbound
    ...ProductDemandInfluencingEvent                 1..1
    .......Item                                                           1..unbound
    ..........OrderForecastTimeSeries                     0..1
    ..............Item                                                    1..unbound
    .................ValidityPeriod                                  1..1
    ......................StartDateTime                             0..1
    ......................EndDateTime                               0..1
    .................Quantity                                           1..1
    the above D02_ZA tag sometimes comes more than one QD with different dates. Same dates has to go under one tag with respective quantities!! This is the situation, can any solve this please?
    The target tag "ProductDemandInfluencingEventNotification" will generate based on number of promotions on particular date. Ex: if one vendor has 'n' number products promotions on 3 different dates, 3 "ProductDemandinfluenceevennotifications" has to generate, that three promotion dates and quantities has to respectively.
    That ZA02 (Qty) value has to go Quantity target field.
    Kind Regards
    San

  • How to set default value in one field depending on other field.

    Hi,
    I have one requirement.That is..One seede page having 2 field, one is Lov Input field and one more message choice filed.
    Requirement is after selecting value in Lov input field need to set one default value in to Message choice field. how to do this one.pls send any sample code for this requirement.
    Thanks in Advance,
    Hanimi...

    Hi,
    I used following code
    OAMessageLovInputBean lovbean=(OAMessageLovInputBean)webBean.findIndexedChildRecursive("AssetNumber");
    OAMessageChoiceBean Choicevalue=(OAMessageChoiceBean)webBean.findIndexedChildRecursive("EamWrPriority");
    if (pageContext.isLovEvent())
    String lovInputSourceId = pageContext.getLovInputSourceId();
    if(lovInputSourceId.equalsIgnoreCase("AssetNumber"))
    if(lovbean!=null)
    String slovVal=(String)lovbean.getValue(pageContext);
    String prValue = getPRValue(pageContext.getApplicationModule(webBean).getOADBTransaction(),slovVal);
    //String prValue = "1";
    Choicevalue.setValue(pageContext,prValue);
    }// end of processFormRequest
    private String getPRValue(OADBTransaction con,String slovVal)
    // System.out.println("In WorkRequestDffCO.getContextValue.organizationID" + organizationID);
    String prValue = null;
    String sql = "select decode(ml.meaning,'AC1',1,'AC2',1,'AC3',3,'AC4',3,null) from FND_LOOKUP_VALUES_VL ml ,mtl_serial_numbers msi where ml.lookup_type = 'MTL_EAM_ASSET_CRITICALITY' and msi.ASSET_CRITICALITY_code = ml.lookup_code and msi.serial_number = 'slovVal' ; //'30AC-TR002B'"
    Statement st = null;
    ResultSet rs = null;
    try
    st = con.createStatement(1);
    rs = st.executeQuery(sql);
    if(rs.next())
    prValue = rs.getString(1);
    catch(Exception e)
    e.printStackTrace();
    finally
    try
    if(st != null)
    st.close();
    if(rs != null)
    rs.close();
    catch(Exception e)
    e.printStackTrace();
    return prValue;
    Query is executing but no value is retuning, if i use hard coded value in where condition like '30AC-TR002B' it is tt's returning value .

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • Problem with 2 PC - one 32 bits, the other 64 bits.

    Hello,
    I am just trying the Creative Cloud
    I have 2 computers :
    * one is an old 32 bits with an internet connection
    * one- in another place - is a 64 bits but with no access to internet connection
    I want to install After Effects CS6 on the 64 bits PC which has no internet connecion
    Is it possible by
    1/ downloading After Effects by the internet connection on the 32 bits PC ?
    2/ transferring it on the 64 bits PC
    3/   What to do next  ?   Enter a serial number as I have suscribed to Creative Cloud ?
    How to obtain it  ??
    Thank you !!

    Gizmo2D3D Internet connection is required to utilize the Creative Cloud.  You could install a trial, connect to the Internet on the 64-bit system, and then sign in using the Adobe ID tied to your subscription.  You would need to repeat this process at least every 30 days or less to allow the software to verify your eligibility to use the software however.
    Is there no option of providing a wireless connection or some other way of accessing the Internet on the 64-bit computer?  If not then I would recommend purchasing a perpetual version of our software as opposed to a subscription.

  • Sort multiple parameters by one field & the rest other field not working!

    I want to sort based on a parameter "Status"; so if the status is Funded, Funded-as Asked, or Funded - New Designation, then I want sort by date funded field. Otherwise, I want to sort Date asked field.
    Here is formula and I receive this error message: This array must be subscripted. For example, Array<i>.
    if ({?Status}) in ["Funded","Funded - As Asked","Funded - New Designation" ] then
    {CnPrProp_1.CnPrProp_1_Date_Funded}
    else
    {CnPrProp_1.CnPrProp_1_Date_Asked}

    FYI - I have tried this trick with multiple if's instead of an Array and it worked.  But I would like to know if it is possible to have single array, rather than multiple if's.
    Formula
    ==============================================
    if ({?Status}) =  "Funded" then
    {CnPrProp_1.CnPrProp_1_Date_Funded}
    else if ({?Status}) =  "Funded - As Asked" then
        {CnPrProp_1.CnPrProp_1_Date_Funded}
    else if ({?Status}) = "Funded - New Designation"  then
        {CnPrProp_1.CnPrProp_1_Date_Funded}
    else
    {CnPrProp_1.CnPrProp_1_Date_Asked}
    ==============================================

  • Populating one field

    HI I have a test database and one table I need has an important field that is blank. It should have a mix of either "Medicare", "Medicaid" "Private" etc.
    I am completely new to Oracle so I need some assistance in how to do this.
    Also, there are in fact some patients who have more than one record in Production that has both Medicare, Medicaid, etc. that is could be 3 records for a Patient refective of this one field or possibly other fields like this.
    I don't want to refresh the entire table bec. I don't know who else is using this table but just if I can touch up the field I need.
    TIA,
    Philky

    Its Oracle 10. I am not sure what you mean by Structure? How I would know which gets what type of service, I dont really, it can be random because I am testing this with Crystal Reports so I just want to make sure my group totals work.
    I have access to PL SQL So I can answer better any question on this.
    I am not sure what you mean by structure. It's a table, with several fields. This is a clinical database so these are large numbers of fields in the table, pertaiining to a patients' history, etc.
    as far as the update part what I want to do is take a few thousand lines, make the field, Medicare", some other make them Medicaid, private, these are known as pay_source;
    but I also want to make some of the patients who have multiple records having both types of pay_ source.
    So I have a field called Patient ID. If there are more than one patient id in the table I need to make one of them Medicare, the next one Medicade, the next Private etc.
    This could be done in a 2 part method. First this last piece, and then a general update for those still having blanks, make some Medicare ( the majority), make other Medicaid, etc.
    I am in the right forum is another question. I am a total newbie to Oracle. I never had a chance to get out of IBM's world until now :)
    Edited by: [email protected] on Mar 17, 2009 10:55 AM

  • How to find out the max/min value of one field corresponding to a second field in HANA through graphical way.

    Hi,
    I am trying to find out the latest delivery date(EINDT)  for each purchasing document (EBELN) through graphical way.
    The view contains other fields apart from the above mentioned two fields.
    When only the two fields (EBELN, EINDT) are there, then in semantics, I can select 'Max' as aggregation to get the maximum value for each document.
    If I do like this, then I need to join more than 3 views and also so many joins in calculation view. Taking so much time for data preview.
    Hence , please help me in getting the solution while the view contains other fields also.
    Thanks in advance.
    Thanks,
    Jyothirmayi

    Hi Sreehari/Vinoth,
    Thank you for your replies.
    if only two fields are then I can get the max/min values of one field corresponding to other field.
    But more than two fields are there with different values, then let me know how to find out the max/min value of a particular filed corresponding to the 2nd field with other fields also should be in the output.
    I hope you understood my issue.Please revert in case of questions.
    Thanks & Regards,
    Jyothirmayi

  • How do I copy a GarageBand for iPad part from one song to another?

    Surely this must be an obvious thing, but I see no way to do it.
    I am working on 2 versions of song on my iPad. I want to copy a part from one song to the other.
    I know I can duplicate the entire song, but that is not the same.
    I really need help on this one and I'll be most disappointed if it's a basic feature Apple have not provided - I'm writing a soundtrack and at the moment and bought the app and to some extent the iPad especially to write on the road, but this will mean we have to abandon GarageBand for iPad entirely if its not possible.
    The other secondary question is why can't you copy parts (using Sonoma copy/paste or similar) OUT of GarageBand into other apps? Another basic function Apple should not have skimped on. This is necessary to, say, apply an effect externally and bring it back to GarageBand for mixdown. I'll raise this separately too.
    Thanks!

    Hi  Here is a guide I wrote about bouncing tracks in GarageBand for iPad.  You could use the methods in here to bounce the track you want to open in another app in to Hokusai , into your other app, and then back into GarageBand.  I hope this helps!   Cheers
    http://ipad.slapWagon.co.uk

  • I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    I'm having some trouble transferring audio books to my iPhone.  It usually takes 3 or 4 tries to get all the parts transferred.  I didn't use to have this problem - all parts would transfer in one try.

    carolinechx wrote:
    i know the description may be a little bit too confusing
    Mostly because you are not using any capital letters or paragraph returns and your post is difficult to read.

  • Problem: Select  Database  to get  X highest entries in reagrd to one field

    Hi Forum,
    I have a problem regarding a complicated (at least for me) Select statement. It uses a customer Z-table to read certain data.
    But my goal is to read only a certain number of top entries per store.
    The number can change from one run to the other.
    To make it clearer here is the simplified defintion of the database table
    MANDT
    LOCNR
    DELTAVERS
    LOCNR is a store and DELTAVERS is a version (simple counter 001,002,..)of that entry. Both fields are key fields.
    Of course there additional fields with values that I interested in. But they are left out here to let focus on the problem.
    My goal is to read a certain #number of top DELTAVERS (versions) for each LOCNR(Store). I do not know the stores or the # of DELTAVERS.
    The select should provide a internal table showing the X highest DELTAVERS with the related store
    e.g. A Select that should show the 3 highest DELTAVERS per Store LOCNR, if available
    LOCNR: DELTAVERS:
    N001 0013
    N001 0023
    N001 0024
    B235 0021
    B235 0056
    Note: In this example B235 has only two entries
    Code:
         l_having_by_cond = "count( DELTAVERS ) le  3".
           SELECT
                      locnr
                      deltavers
                      FROM z_locnr_version
                      APPENDING CORRESPONDING FIELDS OF TABLE
                      lt_locnr_version                 
                      GROUP BY locnr deltavers
                      HAVING (l_having_by_cond).
                      ORDER BY locnr deltavers DESCENDING.
    lt_locnr_version should hold the desired result.
    It seems to use the count for all entries and not just for each LOCNR.
    Hoiw can I achive that the internal table holds the three highest DELTAVERS for each LOCNR (Store).
    Or what would be the best solution here !? Remember we talking here about 1000+ Stores.
    Please help !!
    Thanks in advance,
    Chris

    Hi Forum
    me again, I believe that I somewhat missunderstood the concept of GROUP BY and HAVING clause.
    Both might prove completely useless in this case.
    Would actually aa simple UP TO N ROWS do the tricking providing that the Select is done per store !?
    How can I ensure that it gets always the TOP N entries!??
    Thanks,
    Chris
    > Hi Forum,
    >
    > I have a problem regarding a complicated (at least
    > for me) Select statement. It uses a customer Z-table
    > to read certain data.
    >
    > But my goal is to read only a certain number of top
    > entries per store.
    > The number can change from one run to the other.
    >
    > To make it clearer here is the simplified defintion
    > of the database table

    > MANDT
    > LOCNR
    > DELTAVERS

    >
    >
    > LOCNR is a store and DELTAVERS is a version (simple
    > counter 001,002,..)of that entry. Both fields are key
    > fields.
    > Of course there additional fields with values that I
    > interested in. But they are left out here to let
    > focus on the problem.
    >
    > My goal is to read a certain #number of top DELTAVERS
    > (versions) for each LOCNR(Store). I do not know the
    > stores or the # of DELTAVERS.
    >
    > The select should provide a internal table showing
    > the X highest DELTAVERS with the related store
    >
    > e.g. A Select that should show the 3 highest
    > DELTAVERS per Store LOCNR, if available
    >
    >
    > LOCNR: DELTAVERS:
    > N001 0013
    > N001 0023
    > N001 0024
    > B235 0021
    > B235 0056
    > ....
    >
    >
    >
    > Note: In this example B235 has only two entries
    >
    >
    >
    > Code:
    >
    >            
    >      l_having_by_cond = "count( DELTAVERS ) le  3".
    >
    >        SELECT
    >                   locnr
    >                   deltavers
    >
    >                   FROM z_locnr_version
    >                  
    > APPENDING CORRESPONDING FIELDS OF
    > SPONDING FIELDS OF TABLE
    >                   lt_locnr_version                 
    >                
    >                   GROUP BY locnr deltavers
    >                   HAVING (l_having_by_cond).
    > ORDER BY locnr deltavers
    > BY locnr deltavers DESCENDING.

    >
    >
    > lt_locnr_version should hold the desired result.
    >
    > It seems to use the count for all entries and not
    > just for each LOCNR.
    > Hoiw can I achive that the internal table holds the
    > three highest DELTAVERS for each LOCNR (Store).
    >
    > Or what would be the best solution here !? Remember
    > we talking here about 1000+ Stores.
    >
    > Please help !!
    >
    > Thanks in advance,
    >
    > Chris

  • Problem with F4 option for one field

    Hi,
    While creating pricing condition records (VK11), one field is not having F4 option. That field is KGKG1 (Condition group1).
    Ihave created one table with s.org, dist.channel and condition group1 (KDKG1).
    While creating onle this problem. While changing and displaying the F4 option (i am able to select the values from list) available.
    What would be the reason. Is it require to change in table like domain, fields.
    Please help me to solveit out.
    Regards
    Lakshmikanth

    Hi,
    you can create new condition groups here.
    IMG>Logistics - General>Business Partner>Customers>Control>Define Condition Groups.
    Goto Customer master maintain condition groups.
    XD01/02. goto general data , In Menu select Extras and choose additional data. maintain condition group for customer.
    Regards,
    Chandra

Maybe you are looking for

  • How can I reset all my song data - genre, year, album art etc. from CDDB?

    Like most people I've built up my music collection over quite a few years. In the old days, album info often couldn't be found online, and I had to input data manually. Also, new fields have appeared in the CDDB since I imported some older tracks. Th

  • Aperture 3: Have Picture Styles finally arrived?

    I want the look on my RAWs my camera manufaturer gave them, e.g. Canon RAWs should (for a start) look like in Canon DPP or their JPEGs. With Lightroom 3 I can do that, I think it is called Camera Style and works quite well. There are Camera Styles vo

  • Multi-select lists, their return values and showing their display value

    I have a multi select list which is dynamic. The display and return values are pulled from a table where the return value is the Primary Key. When people select a few options, the value is stored in session state as 11:12:13 (etc...). From here, I ru

  • Output for Contracts

    I have created one contract for RE-FX,while seeing the print preview for this data i am getting the following errors:- 1. ADS: SOAP Runtime Exception: CSoapExceptionFault : SOAP(100102) 2. No document output; see error log 0000000074

  • X to DVD for iMac

    Anything I should look out for in converting x to DVD in iMac?