Set Default Value based on Field from another table for a custom object

I'm trying to set the default value on a custom object field to the value of an account field. I have tried the syntax 50 different ways, and just am getting no where. The account field label displays as DBA, the integration tag is ltDBA_ACCT, and it shows up in reporting fx area as Account.Text_22.
The custom object field I'm triying to update is also called DBA, which was originally the "NAME" required field. Does the table name, Account, have to be included? Do I need a function in front of the field?
I have been updating the external ID using the row ID with syntex <ID> (Less than ID greater than) so I know it is possible to set the Default Value, but <DBA>, <ltDBA_ACCT>, "Account"."DBA", and so on just don't not work.
If anyone knows how to enter this I'd really appreciate the help.

Ok, so if you want to default a field to the value from another object, you have to use the JoinFieldValue function. I think you understand that, based on your original post, but I want to be sure that you do.
Next, this will only work as a default if the record is created from the object that you wish to join on because a default works at record creation and the ID needs to be available for it to work properly. It will not work if you choose the related object record after the custom object record is created. You could set the value as a post-default, but that does not seem to meet your requirements.
The syntax for the Default Value would be as follows: JoinFieldValue(ref_record_type, foreign_key, field_name).
In your case, ref_record_type is '<Account>', foreign_key is &#91;<AccountId>&#93;, and field_name is '<YourFieldName>'. The best way to determine what the field name is would be to create a new workflow for Account and use the Workflow Rule Condition expression builder to pick your field ("DBA") from the list. The value that is returned by the expression builder should be placed in the field_name variable in the JoinFieldValue function (minus the brackets and in single quotes).
Give this a shot and let me know how you do.
Thom

Similar Messages

  • Pass variable and set default value based on user's group

    Hello
    I'm using SharePoint 2010 and SQL 2012. I need to send a variable to the page and based on its value, set default value for a drop down list and send it to other web part to filter the data. Is it possible for certain users to send that value as a default
    and limit user to see only this value in the text field or drop down list; for others - to allow to see the drop down list, but also set the default value for that list?
    The main page was designed in SharePoint designer, using web parts (aspx page). I had setup a connection to Active Directory and already have the code to get user's groups and based on their group, I have that variable pulled into the web page for further
    use. But I don't know how to pass that value as a default value to the web part (currently using SharePoint Filter web part). When I tried to set a default value for the web part - it automatically puts the quotation marks around the name of the variable
    and shows it as a text instead of showing the value of the field.
    Thank you!
    P.s. I have limited knowledge of SharePoint and need guidance (links, examples, recommendations)!
    Alla Sanders

    Thank you for your response. I'll try to give you more details. On PageA I check user's groups and based on the group, assign the value and pass it to the next page (no input from the user, all done behind the scene and user is redirected to PageB).
    On the next page I read that value and would like to send it to the SharePoint List Filter Web as a default value, as well as send it to another web part that displays the list from SQL, filtered using that default value. Ideally, if the user is from Group
    A, I'd like for them to have only one value in that drop down list; if user is from Group B - give him drop down list with 40 items to choose from. Below there is a part of the code and variable fnum has the value from PageA (if I print the value on the screen
    - I do see that it has correct value, so the code that gets groups from Active directory works correctly). If I assign fnum as a default value of the list, it shows "fnum" instead of the value of variable fnum. I connect to SQL database, using external
    content - so the other list that I'm filtering based on the value in that drop down list - is XSLT Data View Web part. I also have 2 more filters on that page, that user will have full access to and based on their input, it is also sent to the XSLT web part
    to filter out more data. Since one of the filters is the date and I am filtering data starting from the date that user chooses - XSLT is the only web part that I was able to make it work with.
    I looked at the link you provided (thank you). It is using Content Query Web part. Will it work with external content, as well as accepting multiple filtering, including custom starting date? I appreciate your help!
    <%
    string fnum = Request.QueryString["field1"];
    %><table cellpadding="4" cellspacing="0" border="0" style="height: 1000px">
    <tr>
    <td id="_invisibleIfEmpty" name="_invisibleIfEmpty" colspan="2" valign="top" style="height: 101px">
    <WebPartPages:WebPartZone runat="server" Title="loc:Header" ID="Header" FrameType="TitleBarOnly"><ZoneTemplate>
    <WpNs0:SpListFilterWebPart runat="server" FilterMainControlWidthPixels="0" RequireSelection="False" ExportMode="All" PartImageLarge="/_layouts/images/wp_Filter.gif" AllowHide="False" ShowEmptyValue="True" MissingAssembly="Cannot import this Web Part." AllowClose="False" ID="g_1ccc4bca_3ba1_480b_b726_adfdb1e9e02d" IsIncludedFilter="" DetailLink="" AllowRemove="False" HelpMode="Modeless" AllowEdit="True" ValueFieldGuid="fa564e0f-0c70-4ab9-b863-0177e6ddd247" IsIncluded="True" Description="Filter the contents of web parts by using a list of values from a Office SharePoint Server list." FrameState="Normal" Dir="Default" AllowZoneChange="True" AllowMinimize="False" DefaultValue="fnum" Title="Facilities List Filter" PartOrder="2" ViewGuid="2da5d8db-6b55-4403-80a8-111e42049f8b" FrameType="None" CatalogIconImageUrl="/_layouts/images/wp_Filter.gif" FilterName="Facilities List Filter" HelpLink="" PartImageSmall="/_layouts/images/wp_Filter.gif" AllowConnect="True" DescriptionFieldGuid="2d97730a-cd0d-4cb9-8b55-424951201081" ConnectionID="00000000-0000-0000-0000-000000000000" ExportControlledProperties="True" TitleIconImageUrl="/_layouts/images/wp_Filter.gif" ChromeType="None" SuppressWebPartChrome="False" IsVisible="True" ListUrl="/Lists/FacilitiesList" AllowMultipleSelections="False" ZoneID="Header" __MarkupType="vsattributemarkup" __WebPartId="{768E2035-0461-4A09-8DDD-CA7020C2B23D}" WebPart="true" Height="" Width="615px"></WpNs0:SpListFilterWebPart>
    Alla Sanders

  • How to set default value to input field dynamically

    Hello Experts,
    I am using adobe forms inside Webdynpro Java.
    Adobe form is having few input fields where at run time i want to assign default value to those fields.
    How can i do it ?
    Thanks in advance,
    Vinay
    Edited by: VINAY on Feb 24, 2011 6:39 AM

    Hi Mate,
    Just set the value to the webdynpro context fields on view init.
    if its like that will override the values entered by use on the form.
    just check if the default value is equall to the field value if yes leave it, if not dont touch that field.
    does this make sense...?
    Cheers,
    Sai

  • How to set default value to input field

    Hi Experts,
    I need to set default value to one input field for the transaction crmd_order as a screen variant. Guide me in doing that.
    Regards,
    Harish

    Using the transaction SHD0, you can define the screen variant. While defining the sceen variant, you are allowed to define the default values.
    Using screen variant, for the main transactoin, you can also define the transaction variant and you can use this as an independent transaction.

  • Set default value based on current day value and setItems in Design studio

    Hello
    I have 2 filters on my dashboard - year and month. The default display of the dashboard should populate current year data. Is it possible to create formula to populate dynamic default value based on the current date using setSelectedValue() ?
    Also, for the calendar month, the items are set as below
    DD_MONTH.setItems(DS_1.getMemberList("0CALMONTH",
    MemberPresentation.INTERNAL_KEY, MemberDisplay.TEXT, 12, "ALL");
    This displays month values as 01/2014, 02/2014 ... How can I change these value to display as January if mm = 01 and February if mm = 02 etc..
    Thanks
    Sirisha

    Hi Victor,
    I have tried using below statment to populate current year as the default selection value for the dropdown. Used it on Startup, but for some reason it loads all the data when the dashboard is opened the first time. Any ideas?
    DS_1.setFilter("0CALYEAR",[Convert.subString(APPLICATION.getInfo().dateNowInternalFormat, 4,6)]);
    Thanks
    Sirisha

  • Set default value based on sql query?

    Hi,
    is it possible to set default value of an BC entity attribute by using sql expression?
    Eg. "select max(x)+1 from y where userid=?"
    Rgs
    Jernej

    Jernej,
    Yes, you can do this. Edit your entity object attribute, and in the Edit Attribute dialog select "Derived from SQL Expression". Then you can enter your expression in the Expression text box.
    Blaise

  • SAP GRC 10.1 AMF No data selected when adding duplicate fields from separate tables for configurable data sources

    Hi There,
    In SAP GRC 10.0, our team had an issue where we could not add duplicate fields from separate table (see ERROR: Select Currency/UoM field for the selected analyzed fields). This was resolved by the SAP Note 1904313/ 1904314 (http://service.sap.com/sap/support/notes/1904313).
    We upgraded our system to SAP GRC 10.1 SP05 and could now add the duplicate fields from separate tables. SAP Note 1904313/ 1904314 was part of SAP GRC 10.1 SP03 so it makes sense that we, in a higher version (SP05), would be able to do this.
    The issue now is when we add the duplicate fields from different tables and run the Ad-hoc Query to test if the data source works correctly, the No Data Selected warning persists. This means that the data source provides no data for analysis, which is required to write our business rules.
    Below is an example:
    Basic data source with just one currency reference field EBAN-WAERS.
    When you run the Ad-Hoc Query you receive data.
    Basic data source with second currency reference field EKKO-WAERS.
    When you run the Ad-Hoc Query no data is found.
    Please also make reference to the following thread logged by my colleague (ERROR: Select Currency/UoM field for the selected analyzed fields)
    Any assistance to receive data with duplicate fields from separate tables will be highly appreciated.
    Thanking you in advance.
    Regards
    Gary Khan

    Hi
    following are the  error messages from dump
    hrtText
       There is already a line with the same key.
    hat happened?
       Error in ABAP application program.
       The current ABAP program "SAPLCKMS" had to be terminated because one of the
       statements could not be executed.
       This is probably due to an error in the ABAP program.
    rror analysis
       You wanted to add an entry to table "\FUNCTION-POOL=CKMS\DATA=T_DYN_CKMLCR",
        which you declared
       with a UNIQUE KEY. However, there was already an entry with the
       same key.
       This may have been in an INSERT or MOVE statement, or within a
       SELECT ... INTO statement.
       In particular, you cannot insert more than one initial line into a
       table with a unique key using the INSERT INITIAL LINE... statement.
    rigger Location of Runtime Error
       Program                                 SAPLCKMS
       Include                                 LCKMSF01
       Row                                     226
       Module type                             (FORM)
       Module Name                             DYNAMIC_PERIOD_CLOSING
    Source code where dump ocured
    222
    223           APPEND ht_ckmlpp TO t_add_ckmlpp.
    224           APPEND LINES OF ht_ckmlcr TO t_add_ckmlcr.
    225           INSERT ht_ckmlpp INTO TABLE t_dyn_ckmlpp.
    >>>>           INSERT LINES OF ht_ckmlcr INTO TABLE t_dyn_ckmlcr.
    227         ENDWHILE.
    Also I guess there is problem with material ledger in R/3 side
    I have never worked on material ledger before so dont hav idea of Tcode and tables in SAP R/3 for material ledger.
    Thanks
    Navneet

  • How can I set default value in a field based on a LOV?

    Here's the LOV:
    select txtName, ID
    from FAC_LK_PROJECT_PRIORITY
    order by 1
    I tried:
    select id from FAC_LK_PROJECT_PRIORITY priority where txtname = 'Medium';
    and set the default value type to be PL/SQL function body but that didn't work - I get this error:
    ORA-06550: line 2, column 1: PLS-00428: an INTO clause is expected in this SELECT statement
    Error ERR-9131 Error in PLSQL function body for item default code, item=P19_PRIORITYID
    OK
    The item is a select list w/ db column as source: PRIORITYID

    Hi Scott. thanks for answering. I get from your post that I need to declare a variable and then return something. I changed it to this
    declare v_id number := null;
    begin
      select id into v_id
          from FAC_LK_PROJECT_PRIORITY priority
          where txtname = 'Medium';
      return v_id;
    end;and it works.
    Why do you use a loop? In case there's >1 row returned by the query?

  • Setting default value based on Link

    I have a report with a link to a form. The link is a standard portal component link.
    The link passes in cus_id.
    I would like to set the default value of the form cus_id field to the cus_id value from the link when the form is presented in insert mode due to the expected situation where no record for the cus_id exists.
    I have tried using the following function in default value:
    NVL(portal30.wwpro_api_parameters.get_value('A_CUS_ID','LEVEL_TWO_FORM'),0)
    I have tried both CUS_ID and A_CUS_ID, but neither seems to return a value.
    Any suggestions are much appreciated!
    null

    I was able to reproduce this. The problem occurs because when referencing another page def (binding container) than the current one, this binding container needs to be "prepared" which is done by calling method refreshControl() on the binding container. For binding containers of parent groups, JHeadstart automatically prepares them as prat of the prepareModel phase of the current binding container. However, when clicking the AddRow button, this is too late, the default value expression is evakluated before the prepareModel phase.
    A simple work around is to manually add the value binding "masterField" and its iterator binding to the page definition of the detail group. You can then use the expression "#{bindings.masterfield.inputValue} and that should work.
    Note that in JHeadstart 10.1.3.3, we will add a "jhsPageDefs" managed bean that extends HashMap, which allows you to retrieve "prepared" binding containers. You can then use the expression
    #{jhsPageDefs['MasterWizardGroupPageDef'].masterfield.inputValue}
    Steven Davelaar,
    JHeadstart Team.

  • Setting the value of a textbox from another page

    Hi Everyone,
    I have a multi paged application (multiple xib, multiple controllers)
    In my selection view, the view that holds the UIViewPicker control, I need to populate the page that called the selector page...
    I have the code to identify what page called the selector, and when the page is dismissed, I need to fill in the field from the calling page.
    I have included the header of the calling view in my selector view, and now I need to be able to fill in a readonly textbox in the calling view....
    Do I need to setup a property for each of the textboxes in the calling view, or can I populate them directly??
    thanks
    tony

    alt-088 wrote:
    I am sorry, but I am lost in this implementation....
    How exactly do I tell the self.parentViewController what control will receive the new text value??
    Ooooops!! I'm the one who needs to be sorry, Tony:
    // from previous post
    - (void)setTextInParent:(NSString* textValue) {
    // assume that every possible parent controller has a "textbox" object
    // which is a member of some class that has a writable 'text' property
    [previousViewController setValue:textValue forKey:@"text"]; // <-- * Idiot alert *
    Looks like another one of my senior moments. As you pointed out, we need the value of the 'textBox' property before we can set the value of the 'text' property.
    To your question on how I am displaying the second view, it is called via
    [self presentModelViewController:screen animated:YES]
    from a button click event
    Cool. That means we already have the address of vc1 in the 'parentViewController' ivar of vc2, so we don't need to add the 'previousViewController' ivar shown in my example.
    So here's a corrected and maybe more relevant example--this one has been tested (Duh!), btw:
    - (IBAction)done {
    // get the currently selected string
    NSInteger row = [pickerView selectedRowInComponent:0];
    NSString *selection = [dataArray objectAtIndex:row];
    NSLog(@"%s: selection=%@", _func_, selection);
    // set text in textBox property of parent controller
    [self.parentViewController setValue:selection forKeyPath:@"textBox.text"];
    [self dismissModalViewControllerAnimated:YES];
    I have tried to implement this code
    [self.parentViewController setValue:21 forKey:@"test"];
    but it is generating an error stating
    passing argument 1 of 'setValue:forKey:' makes pointer from integer without a cast
    Yeah, referring to the doc, [setValue:forKey:|http://developer.apple.com/iphone/library/documentation/Cocoa /Reference/Foundation/Protocols/NSKeyValueCodingProtocol/Reference/Reference.html#//appleref/occ/instm/NSObject/setValue:forKey:] wants an id type (pointer to an object of any Obj-C class) for the first arg. Since 21 is an int, i.e. a scalar value, the compiler doesn't like it (and the runtime system would like it even less).
    However when you want to use KVC to set a scalar property, the methods are actually smart enough to extract an int if you provide a NSNumber object (see "Setting Attribute Values Using Key-Value Coding" under [Key-Value Coding Fundamentals|http://developer.apple.com/iphone/library/documentation/Cocoa/Conc eptual/KeyValueCoding/Concepts/BasicPrinciples.html#//apple_ref/doc/uid/20002170 ] in the Key-Value Coding Programming Guide). So if 'test' is an int ivar of the parent controller, something like this should work:
    [self.parentViewController setValue:[NSNumber numberWithInt:21] forKey:@"test"];
    Does that cover your questions? Sorry again for the bad code. Most of the examples I post are pasted directly from working, tested code, and I usually add a disclaimer if it's just something I keyed into the forum. But when I"m having a senior moment all bets are off.
    - Ray

  • Set default value to a field in MM01

    Hi Friends ,
                Can anyone tell me that how can set a default value to field "Rounding Value" in tab "MRP1" when i go to transaction "MM01" . I tried to search user exit/Badi for the same but i didn't get OR can say not able to find.
    PLEASE HELP ME.
    THANKS IN ADVANCE.
    Kishor

    In config, there is something called a rounding profile which I think will help you achieve what you want. Here is the path to the config task.
    Implementation Guide for R/3 Customizing (IMG)
    -->Logistics - General
       -->Quantity Optimizing and Allowed Logistics Units of Measure
          -->Maintain Rounding Profile
    Here is the documentation related to that task.
    <i>Maintain Rounding Profile
    In this step you define rounding profiles for adjusting units of measure to match delivery or transport units.
    Rounding profiles can be maintained on a general or plant-specific basis. General maintenance is recommended as this requires you to enter less data.
    A distinction is made between static and dynamic rounding profiles.
    A static rounding profile comprises the following:
    Threshold value
    Rounding value
    The threshold value is the value from which the system rounds up to the next delivery quantity.
    The rounding value is the value to which the system rounds up as soon as the threshold value has been reached.
    Several combinations of threshold and rounding values can be defined for rounding profiles.
    No logistics units of measure are taken into account with static rounding profiles. This means that the system rounds up statically to the rounding values entered in the profile and not to "full pallets", for example.
    Dynamic rounding profiles comprise the following:
    Rounding method
    Rounding rule
    Indicator to show that units of measure are to be condisered only if they are allowed for the vendor or recipient.
    The rounding method controls how the system rounds off:
    No rounding
    Rounding to a multiple of the order or sales unit
    Rounding to order or sales unit, and to logistics units
    No rounding
    You have to define an additional rounding rule if you want your profile to round off to whole logistics units. This rounding rule is the key used for grouping logistics units of measure. The group contains all the units to which the system can round off when using the profile.
    You can also have the system include only those logistics units that are allowed for the vendor or recipient. Allowed units of measure are defined in unit of measure groups that can be used at material-vendor level or at material-plant level.
    Example
    a) Static rounding profile
    A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallets = 8 cases or 40 pieces).
    You maintain the static rounding profile as follows:
    From To Rounded to
    01 05 05
    06 10 10
    11 15 15
    16 20 20
    21 25 25
    26 30 30
    31 31 35
    32 40 40
    41 45 45
    46 50 50
    66 70 70
    71 71 75
    72 80 80
    81 85 85
    b) Dynamic rounding profile
    To procure materials in lower price bands, you define rounding rules containing all pallets and cases that the relevant vendors can deliver. You enter a percentage for every pallet and case category that indicates the level to which a quantity is to be rounded up to the next unit of measure.
    Rounding rule 01
    Unit of measure Round up as of
    Euro pallet 70% full
    Pallet category 2 80% full
    Case for euro pallet 65% full
    Case category 2 75% full
    You maintain a dynamic rounding profile using the rounding method "round to whole logistics units" and assign the profile rounding rule 01.
    A material has a base unit of measure of 1 piece. Purchases are made in cases (1 case = 5 pieces) or pallets (1 pallet = 8 cases or 40 pieces). The system then rounds an order quantity of 68 pieces (= 40 + 28) to 2 Euro Pallets (= 80 pieces) because the second pallet is already 70% full.</i>
    Hope this helps,
    Srinivas

  • 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 set default values to these fields

    Hello,
    I'm new with UCM 11g, and i need to add default values to fields, for example to these fields:
    Type -> Document should be the default and not editable value
    Title -> Should be the name of the file i'm checking in
    Security Group -> it's default and not editable value should be Secure
    How do i set these default values ??
    Regards
    Carlos

    Security Group and Document Type can be defined in your profile (as default values using dprDefaultValue - see e.g. Re: simple profiles and defaulting ). You can also define those fields as 'hidden' or 'info only'
    Title with the name of file is a bit trickier - you cannot define it up-front as you don't know what file will be chosen, do you? You can, however, use a global rule where you can fill in dDocTitle with the value in dOriginalName (or somehow process it, if you will).

  • Updating a date field witha field from another table

    Hi friends
    I have a table called Customer_Type with following fields
    Customer_type ,Active_date, Inactive_date
    regular,11/01/2011
    daily,11/04/2011
    monthly,11/05/2011/11/11/2011
    Tbale 2:Customer
    Customer_name,Customer_type,Customer_Inactive_date
    John,regular,
    James,monthly,
    Jake,daily,
    Jill,monthly
    What i wnat is to update the Customer_inactive_date with the Incative_date field from Customer_type
    based on their Customer_type... So james and Jill would have their rows updated in this scneario ..How can i achive this in pl/Sql
    Thank you in advance...

    Hi,
    You can look at this code; it's not PL/SQL but a simple MERGE statement:
    CREATE TABLE CUSTOMER_TYPE
      type_code VARCHAR2(10),
      active_date DATE,
      inactive_date DATE
    INSERT INTO customer_type VALUES('REGULAR', TO_DATE('11/01/2011', 'DD/MM/YYYY'), null);
    INSERT INTO customer_type VALUES('DAILY', TO_DATE('11/04/2011', 'DD/MM/YYYY'), null);
    INSERT INTO customer_type VALUES('MONTHLY', TO_DATE('11/05/2011', 'DD/MM/YYYY'), TO_DATE('11/11/2011', 'DD/MM/YYYY'));
    CREATE TABLE CUSTOMERS
      customer_name varchar2(10),
      customer_type varchar2(10),
      customer_inactive_date DATE
    INSERT INTO customers VALUES('John', 'REGULAR', null);
    INSERT INTO customers VALUES('James', 'MONTHLY', null);
    INSERT INTO customers VALUES('Jake', 'DAILY', null);
    INSERT INTO customers VALUES('Jill', 'MONTHLY', null);
    MERGE INTO customers dst
    USING customer_type src
    ON (dst.customer_type = src.type_code)
    WHEN MATCHED THEN
      UPDATE set dst.customer_inactive_date = src.inactive_date;
    SELECT * FROM customers;
    CUSTOMER_NAME CUSTOMER_TYPE CUSTOMER_INACTIVE_DATE   
    John          REGULAR                                
    James         MONTHLY       11-NOV-11                
    Jake          DAILY                                  
    Jill          MONTHLY       11-NOV-11                 If you don't understand it, just let me know...

  • Retrieving numeric values of a column from another table..

    Hi there, so i have the following query that returns a label and a value from a database table:
    select key_field,value_field from table1 where some_id = 'id1' and key_field is not null;
    This will return a result in which the key_field may or may not be numeric, which is fine:
    key_field | value_field
    2 | street
    6 | dog
    car | mazda
    5 | tea
    1 | unknown
    I have another table table_num_vals where the value for those numeric fields are stored:
    key_field | display_field
    2 | address
    6 | animal
    5 | drink
    I want to be able to return the non-numeric fields as they were, all numeric fields translated if it can be found, and if not then leave the original number, desired result:
    key_field  | value_field
    address | street
    animal | dog
    car | mazda
    drink | tea
    1 | unknown
    I tried doing the following:
    select display_field from table_num_vals where key_field in (
        with numericCol as (
            select key_field from table1 where some_id = 'id1' and key_field is not null;
        ) select case when regexp_like(key_field,'^[[:digit:]]') then key_field else '' end from numericCol
    It gives me the labels for the ids that it can find.. (address, animal, drink) but then I can't seem to put it all together with the original query.. could someone please help?
    Thanks in advance,

    Yes you are right .. Thank you so much
    I let it work using
    select student_ID, Level from Student where Level ='Graduate'
    But when i run different kind of form to Graduate_Student table and try to create a new row , I cant see the Student_ID  !  I see it only if I use Form using SQL but this one doesn't add/delete/update record.
    I am new to oracle apex, sorry for that.

Maybe you are looking for

  • Windows 8.1 install fails on new 2013 Retina MacBook

    I doubt there are many people out there who can help with this yet.  I was able to pick up my 2013 Haswell Retina MacBook Pro from my local Apple store this morning (yay!), and so far everything has been stellar.  However, I'm unable to install Windo

  • Hard drive, printer, PS3, etc to Airport Express

    Hi guys.  I have a few devices that I want to hook up somehow but am not quite sure how to go about it.  I have some knowledge but when people provide highly technical responses, I sometimes get lost in it all so please go easy on me.    I've already

  • I have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

    i have unlocked iphone 5.i tried to use it with tmobile.it shows full network but fails to activate and shows sim invalid.how to make it work?

  • Converting Rows into Column in Oracle 10g

    Hi All,                     I m using Oracle Version 10.1.0.2.0 - Production                     I have requirement to convert rows into column wise as per the following:                     My Query is:                     WITH t                    

  • Share Aperture & iPhoto Library

    Is it possible for Aperture to use my old iPhoto library or do they have to be two distinct librarys? I'm not quite ready to give up iPhoto but don't want to duplicate my 100GB library. Also, is there a maximum size, or perhaps a recommended size of