Using two field in a same custom function

hi experts,
i have a query
suppose i have a data of 3 field
Name            State                   city
tom              gujrat                 varoda
billy              rajasthan            jaipur
jeny              maharastra        mumbai
jeny              maharastra        pune
now i want to change the city to "navi mumbai" where ever i find state = 'maharastra'    i.e.
Name            State                   city
tom              gujrat                 varoda
billy              rajasthan            jaipur
jeny              maharastra        navi mumbai
jeny              maharastra        navi mumbai
thnks

Use this in the mapping tab of City
ifthenelse(Table.State='maharashtra','navi mumbai',Table.City)
For Table.State and Table.City, "Table" is the name of your source. You can just drag and drop them from the input schema.
Remember to maintain the spelling of the comparison string exactly as it is like in the source data.
Regards,
Suneer

Similar Messages

  • How can I have two fields with the same name if it makes sense?

    Hello, folks :)
    I have a pretty hard time figuring out how I can have two text fields with the same binding name.
    The whole problem is that when I need two fields with the same binding name they are still differnent coz they have the same name but differnt indices.
    I should make a form filled at runtime by merging a pdf form file and an fdf file data file. And I have no choice to do it differently. And my form file needs some data like customerName, companyName twice in one form. But there's only one possible buinding name indexed zero.
    How can I create a field with absolutely the same name or is it just impossible due to possible name conflicts? And is there a workaround to this problem? I just need one piece of data repeated in different places.
    Thanks for your replies :)
    P.S. if u think that the problem is not clear enough let me know. I'll supply you with more details. But the general process can not be changed.
    One pdf should be mergred with an fdf with as the result of their merge a new filled and flattened form. I have no control over fdfs their are generated by Oracle and I can not fill the form using XML files coz this process should be integrated in a working application.

    I just thought about a really ugly workaround with a server-side script adding values to fdf files but it's a bit of work and tests and personally i think it's a bad idea :-(

  • Use two indicators for the same variable in two different VIs

    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    should I use global variables?? I want to avoid because I have lot of variables and it would takes too much memory,I tried with this code but the value of the second indicator is not updated 
    I tried to use the queue and it works but the problem is as i said previously that i have many variables shoud I use a queue for each one??
    what should I do?
    thank you in advance
    cordialy
    Attachments:
    projet.zip ‏13 KB

    CrisSTine01 wrote:
    hello, I want to use two indicators for the same variable in two different VIs running at the same time
    I'm a huge fan of User Events to send updates to GUIs from who knows where.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How to use two "field separator" in the same Comunication Channel

    Hi experts,
    I  upload flat files with XI, and my Comunication Channel is configured to use the field separator "~".
    FILA.fieldSeparator     ~
    Is posible to configure that Comunication Channel to accept two field separator. I want that upload flat files that has as separator "~" and flat files that has "|" .
    thanks
    regards

    IT IS not possible to have 2 fieldseparator to identify the fields of a record.

  • SSRS - Pass Field Value List To Custom Function Assembly And Display Result

    I have written a SQL Server Reporting Services custom function as a C# assembly DLL and added it to my report. The purpose of the function is to search for outlier records in a collection of data. The data is represented as an array of floating point -tuplets
    (float[][]). In a medical patient database, these might be things such as blood pressure, cholesterol, hight, weight, waist measurement, etc.
    Several user input parameters are provided in the report, including numeric seed values for this particular algorithm. One multivalued parameter is a list of the numeric columns to be used as input to the algorithm because, importantly,
    the user can choose any subset of the value columns. I have a tablix that will display columns from the dataset conditionally, based on which of those columns are chosen.
    At this point, there are two issues I'm having difficulty with:
    How do I, in the course of running the report, take just the numeric columns that the user has chosen (ignoring all others in the dataset) and pass them as a float[][] to my custom function? Or is there something in the
    Microsoft.ReportingServices namespace that I should use to query an input dataset and convert it to an array in my C# code?
    How can I present the array subset returned by my custom function in a tablix in the report?
    Note: One thought that occurs to me is that outlier records tablix could be contained in a subreport, but I'm not clear on the logistics of passing dataset field results from a master report to a subreport.
    I envision a final report when run to be similar to the following:
    - Mark Z.

    Hi Mark,
    Sorry for the delay.
    From your description, you want to pass the dataset data to a custom code array, and return the subset of the array, right? In this case, you can use a custom function to add the data to array, and use the a custom function to sort the data base on your
    requirement and then use a function to get the subset of the array. Here are some sample custom code for your reference.
    Add to arryay
    Dim values As System.Collections.ArrayList=New System.Collections.ArrayList()
    Function SetText(ByVal value As Integer) As Integer
        values.Add(value)
        return value
    End Function
    Sort array
    Function Sort()
    Dim i as Integer
    Dim j as Integer
    Dim t as Integer
    Dim n as Integer=values.Count-1
    For i=n To 1 Step-1
     For j=0 To i-1
     if values(j)<values(j+1) Then
        t=values(j)
        values(j)=values(j+1)
        values(j+1)=t
     End if
     Next j
    Next i
    End Function
    Return value.
    Function Rank(ByVal value As Integer)
       return values(value)
    End Function
    Assume that you pass [Weight] field to array, you can use the expression below on the Weight column:
    =Code.SetText(Fields!Weight.Value)
    Then use the expression below to get the values.
    PatientID:=Sort() & Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Patient.Value,"Dataset")
    Height:=Lookup(Code.Rank(0),Fields!Weight.Value,Fields.Height.Value,"Dataset")
    Weight:=Code.Rank(0)
    Hope this helps.
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • How can I use two ports in the same time?

    My application need one pc use two ports the same time.But when I open one port and my systerm is running the other port can't be opened.
    I use the frame API in VC++6.0.
    My OS is win2000 server;
    The functions I used are ncOpenObject();

    Hi DickW
    Thank you for your help!
    I have tried the example.But the example shows how to connect one CAN network with two ports.
    I want each port connect to the net can both read and write;
    I want to apply the function like this:
    1.config the port1 and port2
    2,open port1 and port2
    But after I open port1 or port2 the other port can't be opened;
    After I open the second port it always returns negative.
    In the codes I use CAN0 and CAN1 as the CAN objects.
    Attachments:
    twoport.zip ‏1184 KB

  • How to compare two fields from the same table in the select statement

    Hi, friends
    I try to compare tow fields from the same table, but no result,
    For example, this
    data: cptotchek tyep i.
    select count(*) into cptotchek
    from aufk where erdat = aufk-idat2 .
    The result is  cptotchek = 0, but there are the records in aufk , where,  aufk-erdat = aufk-idat2.
    Please, help me, i don't use the loop statement for optimize my program.
    Regards

    Hi  ,
           it will not return  any value   when you are using   column of same table 
           such as Date Field   , Because  while Using Aggregate Function  it will not check with self column
    .      For that you have to take data in one internal table and then you can work on it  .
         And if you are worried about Performance  it will not affect  , untill you are selecting only required data  .
    you can try this way  .
    data: cptotchek type i.
    types : begin of  w_aufk.
            include structure aufk  .
          types : end of  w_aufk .
    data : it_aufk type standard table of w_aufk with header line  .
    select * into corresponding fields of table it_aufk
    from aufk  .
    loop at it_aufk .
    if it_aufk-erdat  = it_aufk-idat2 .
    write : / it_aufk-erdat , it_aufk-idat2 .
    else .
    delete it_aufk .
    endif  .
    endloop.
    Regards
    Deepak.

  • Two fields on the same line in sreen programming

    Hi All,
    I need to create a selection screen which would have two fields (their texts and their irespective input fields) in the same line, on the screen.
    I was able to achieve this by using code--
    SELECTION-SCREEN BEGIN OF LINE.
    SELECTION-SCREEN COMMENT 1(31) text-a04.
    PARAMETERS: sch_begd LIKE qppnp-begda.
    SELECTION-SCREEN COMMENT 52(22) text-a05.
    PARAMETERS: sch_endd LIKE qppnp-endda.
    SELECTION-SCREEN END OF LINE.
    This could allign the fields - start date (text-a04) and end date (text-a05) in the same line along with their input fields.
    But I am facing two issues with this code-
    1. I am not able to get the underline same as we get when we create selection screen using 'select-options' and 'parameters'.
    2. This is causing accessibility issues, as the field text and the input field are no more linked (since I am using text element to display the field text, like for start date), it cannot find the text to be read for the input field and hence the checkman errors.
    Please suggest how to achieve the same.
    Thanks and Regards,
    Arpita.

    Hi Arpita,
    Are you trying to have select-option field in your screen in dialog programming?
    If yes than you can use the following approach else ignore this.
    Create one screen (100) and create subscreen area on this screen and call this subscreen in PAI and PBO of screen
    Using call subscreen check F1 help for calling subscreen in PAI and PBO.
    Now you should create your selection screen on the subscreen use selection screen begin of screen (100) option of defining
    selection screen and then add your selection options here.
    Regards,
    Pawan

  • Two outputs for the same partner functions............

    Hello,
    I have come across the situation where i need to use two transmission medium for the same partner function, is it possible through the standard settings?
    E.x. My client wants to send  email and print to the sold to party while confirming order, what are the required settings need to be made?
    Thank you.

    Similar question was answered in the past, check the link Output transmission medium to print and email and the answer provided by Yadav suits your requirement.
    Regards,

  • Jumpstart/ZFS - mirror any any uses two slices on the same disk

    Hi all,
    I am setting up a set of custom Jumpstart profiles for a Solaris 10 10/09 SPARC install server. I am attempting to set up ZFS mirrored root filesystems using part of the two root disks (reserving the remainder for a second ZFS pool for application data). To achieve this, I have been using "mirror any any" as the device list for the pool directive in the Jumpstart profile
    On my test system with 73GB disks I've had no problems, but testing against a new server with 146GB disks the installer seems to be putting both halves of the mirror onto the same disk - I presume because the root pool size is less than half the size of the disk, and so it can.
    Is there any way to specify that the root pool should be mirrored across any two distinct disks, or any other advice on how to avoid this happening? I know I can specify exact slice names (i.e. "mirror c1t0d0s0 c1t1d0s0"), but some of the servers will have FC cards in, and so I can't guarantee what controller number the internal disks will be on.
    As an example, here is a line from the rules file, and the associated profile (the start/finish scripts are currently only displaying information).
    rules
    ====
    arch sparc && memsize 4000-4200 begin_settings.sh sparc_4G_zfs lmu_setup.sh
    sparc_4G_zfs profile
    ===============
    install_type initial_install
    system_type standalone
    cluster SUNWCXall
    pool rpool 30g 4097 1g mirror any any
    Thanks,
    Dave Taylor
    Senior Infrastructure Consultant
    Leeds Metropolitan University

    Hello Dave,
    I would expect that the profile you supplied will result in two slices off the same 146G disk to be selected for both sides of the mirror. If the numbers you had used for poolsize/swapsize/dumpsize had been smaller, you would would have had the same behavior on the 73G disk as well.
    In short, when you say 'any', you are basically saying "I don't care where it goes, give me the first slice/device that works". So, with the 'any' in the first position, kernel probe order is used, so in this case the first disk is selected, and the zpool is created. With 'any' in the second position, again the first disk is found, with available space, the mirror slice is created.
    If you want the two parts of the mirror to be on different devices, either alter the numbers for poolsize/swapsize/dumpsize in your profile so you cannot get both on the same disk, or don't use 'any' for the mirror vdev.
    Again, if you use 'any', you are saying "I don't care". If you do care, don't use 'any'.
    Channing

  • How to create a field in an OAF page which sums two fields in the same page.

    Hi,
    In the HRMS appraisal page, I have two fields in different regions.
    1. One field shows the total score of the competencies.
    2. Another field shows the total scores of the objectives.
    The problem with the appraisal total score is it returns only the rating level id. (It does not take decimal values)
    Hence I want to add the above two fields which is displayed in the same page and show as a new field in the top of the page as the final appraisal score.
    [Something similar to what is mentioned in the metalink document 1315431.1 ]
    We are in 11.5.10.2.
    I am new to OAF and have no idea as to how to achieve the above step. Can anyone guide me in doing it?
    regards

    Hi,
    Went through the steps to do a VO substitution.
    But normally in all the examples given the page will belong to the application where we are modifying.
    Eg. in this case the "about this page" shows /oracle/apps/fnd/wf/worklist/webui/NotifDetailsPG
    This is coming under fnd top where all the appraisal VOs and other pages comes under PER_TOP.
    Should I bring all the files from FND_TOP of the server to my PC where jdev is installed.
    I have already taken all the files under $PER_TOP to my PC.
    regards

  • Trying to homeshare using two accounts on the same Mac

    My partner and I both have our own accounts on the same MacBook with separate iTunes accounts. We are trying to homeshare so that we can share our music. We have both logged into the same homeshare account and authorised both itunes accounts on both iTunes. Neither iTunes shows the Homeshare option on the left hand menu so we are still unable to view each other's libraries or share music. Can anyone advise what to do next? I have searched the apple support site and googled but can't find anything to help. Is the problem that we are both using separate accounts on the same macbook rather than two separate devices?
    Thanks!

    You need two computers to enable homesharing to work.

  • How to load data using two maps for the same source file in Import Manager

    Hi,
    I am trying to load the source data to MDM using two map files, since one map is too big (creating memory error).
    However the first map data able to see after loading (SAP data) but when loading second map(nonSAP data) using the remote key to match the previously loaded SAP key ,even if MDM is processing the data it is not reflecting in data manager.
    Is there any reason for this.
    Appreciate your suggestion and tips on this.
    regrds,
    Reo

    Hi Reo,
    As ur requirement seems,In the second pass perform recording matching by select default import action as "<b>update null fields only"</b> for those data records which are matching and "<b>create</b> " for those data records which are not matching with previous data records from SAP system.
    If you define "update null fields only", then only the key of the new record from NON SAP will get appended to the existing record. And if you select "create" then it will create new records and will apply NON SAP key on it.
    Please check the remote key values using data manager.Key is applied in the records or not.
    Remember that import maps are client specific. Remote key comprises of both key and client system.So be sure that you are connecting to two different client systems.
    I have tried this and this is working fine on my system.
    Thanks,
    Shiv Prashant Dixit
    Thanks,

  • OVS for two fields in the same selct Option?

    Hi Experts,
    I am using select options in my view. I am using OVS for one field. I would like to use same OVS for another field in the same select option.
    I tried "case ovs_callback_object->context_attribute". Which return the field for which we press F4.
    But IT did not work here probably because this we can use only for context attributes fields.
    but But here I dont get the select option field.
    But in my case I have select options which are not mapped to any context attribute.
    How can I find , for which field in select options F4 help has been requested?
    Regards,
    Vishal.

    Hi,
    You can find which field in select options F4 help has been requested using I_OVS_DATA-M_SELECTION_FIELD_ID.
            CASE I_OVS_DATA-M_SELECTION_FIELD_ID .
                 WHEN 'PERNR'.
                 WHEN 'ENAME'.
                 WHEN OTHERS.
            ENDCASE.
    If you are using one OVS for more than one fileds, please remember that you need to provide different code for each fields at phase 0 (configuration) and phase 3 (apply result).
    Regards,

  • Use two interfaces on the same network

    Hello every one,
    I actually starting to work on a cisco project. I'm a beginner on networking and cisco technologie.
    For my project we use a router 2921.
    We got two network:
    - Network A: 192.198.0.X / 255.255.255.0 / Gateway 192.198.0.1
    - Network B: 162.168.0.X / 255.255.0.0 / Gateway 162.168.0.1
    Each network use switch, Switch A (connecting to network A) is connected to interface G0/0.
    And Switch B (connecting to network B) is connected to interface G0/1.
    Router well configured as:
    - G0/0: ip address 192.198.0.1 255.255.255.0 (network A)
    - G0/1: ip address 162.168.0.1 255.255.0.0 (network B)
    Every think working fine.
    The problem is with this one, we need to connect a computer on G0/2. This computer is configure as network A (192.198.0.10 / 255.255.255.0 and same gateway).
    I can't configure G0/2 as 192.198.0.1 255.255.255.0 (network A), cause G0/0 use this adresse.
    I can't put this computer on the switch A, my only physical possibilité is to connect him on G0/2.
    We just need to use interface G0/0 and G0/2 as a switch on the router with the same gateway (192.198.0.1)
    How can i connect this computeur? How can i configure two interfaces on the same network and same gateway?
    Thanks you

    I would just put the PC on a different network, but if you really want it to be in the same network, you could use IRB to connect two of the interfaces on the router at layer 2.
    Here is an example config for IRB:
    interface FastEthernet0/0
    bridge-group 1
    interface FastEthernet0/1
    bridge-group 1
    bridge irb
    interface BVI1
    ip address 192.168.0.1 255.255.255.0
    bridge 1 route ip
    Notice that the physical ports do not have IP addresses on them, the IP for the subnet is on the BVI interface.

Maybe you are looking for