Formula column and database item yes

Hi,
i have a master detail form where one column of master block is formula column as well as its database item property is set to yes , i want the column value to be save in the database,
what should i do
using Forms 6i,
Regards,

Hi,
You cannot use a formula column as a database item. It won't save to the database. Use another item for calculated item, and then in the PRE-INSERT or PRE-UPDATE trigger, assign the value of the calculated item to the database item.
Regards,
Manu.
If my response or the response of another was helpful, please mark it accordingly

Similar Messages

  • E Sourcing 7.0: Formula Pricing and  Line Item Formula

    Hi
    I am currently working on e sourcing 7.0. Here there are new features provided in Rfx->Line Item setup called Formula Prcing and Line Item Formula
    I was trying to use Line Item Formula feature to provide pricing formula for line items.I chose pricing structure as Formula Prcing and tried to advance the phase of Rfx, System gave an error that I need to create unit price formula if I choose Formula Pricing.But once I create unit price formula it makes the Line Item Formula redundant.
    Moreover the problem with unit price formula is Unit Price field is only available with Line Item Formula.It doesnot allow me to create an effective unit price formula beacuse of limitations of field at exposure.
    Has anybody used this feature? Kindly help me understand
    Regards
    Shobha
    Edited by: Shobha M Narayanaswamy on Aug 12, 2011 11:02 AM

    Hi Shobha,
    I hope members who have used this feature chime in. I am only playing with Formula Pricing because we are evaluating these as well.
    I was not able to use the standard fields when using Formula Pricing.
    I am retracting what I said in the last post, apologies, I made a mistake in the supplier response.
    From what I understand now:
    If you want to have sub components of the unit price (or more important, any other calculations for unit price), you should choose "Formula Pricing" under Pricing Structure. E.g., my company asks for supplier's manufacturing costs, their purchased parts cost etc all of which contribute to make up the unit price. In this example, I created Supplier Entered Attributes for Manufacturing Cost and Purchased Parts Cost and added a Unit Price formula which was the sum of both. In addition, I created a Supplier Entered Attribute for "Freight Cost" which is not really a part of the unit price, but is an additional cost. In Line Item Formulas, I added 2 formulae, just for example.
    Total Freight Cost = Quantity * Freight Cost (Supplier Entered Attribute)
    Total Calculated Cost = Total Freight Cost + (UnitPrice(IncoTerm) * Quantity)
    Part 1 - Quantity = 10, Manufacturing Cost = 5, Purchased Part Cost = 5, Freight = 3
    Part 2 - Quantity = 10, Manufacturing Cost = 6, Purchased Part Cost = 6, Freight = 3
    System correctly calculated
    Part 1 Unit Price = 10
    Part 1 Unit Price = 12
    Part 1 Total Freight Cost = 10 * 3 = 30
    Part 2 Total Freight Cost = 10 * 3 = 30
    Sum=60
    Part 1 Total Calculated Cost = 30 + (10*10) = 130
    Part 2 Total Calculated Cost = 30 + (10*12) = 150
    Sum = 280
    If you do not need the sub-components of the Unit Price, we can leave the pricing structure at Unit Price. I did that for an RFX, and also added the same 2 formulae in Line Item Formulas as above. This worked fine for me.
    Part 1 - Quantity = 10, Unit Price = 3, Freight = 5
    Part 2 - Quantity = 10, Unit Price = 3, Freight = 5
    System correctly calculated:
    Part 1 Total Freight Cost = 10 * 5 = 50
    Part 2 Total Freight Cost = 10 * 5 = 50
    Sum=100
    Part 1 Total Calculated Cost = 50 + (10*3) = 80
    Part 2 Total Calculated Cost = 50 + (10*3) = 80
    Sum = 160
    Both the above scenarios work fine for me.
    The only open item is, I could not find a way to get these added to the Total Cost and Total Price listed on the "RFX Responses tab". I don't think it is possible to do that. I think you have to view these in the "Formula View" of the respective supplier proposal.
    Let me know if this helps.
    Thanks,
    MP

  • Diff. between Formula column and Placeholder column

    Can any one explain me the difference between a formula column and place holder column in Reports.

    Place holder columns are used to hold a value and they are populated by formula columns and in the following places.
    - the Before Report Trigger, if the placeholder is a report-level column
    - a report-level formula column, if the placeholder is a report-level column
    - a formula in the placeholder's group or a group below it
    (the value is set once for each record of the group)
    But Formula columns perform a user defined computation on one or more columns including placeholder columns. You can set the value of placeholder column in a formula column. But you cannot set the value of a formula coulmn in a placeholder column's PL/SQL.
    Regards,
    Siva B

  • Dynamic alignment of report column and page item value

    Hi friends,
    I have an interactive report which contains the columns like
    <li>empno
    <li>Name
    In the above i have "empno" with a column alignment of left and a "Name" with a column alignment of left.
    Whether it is possible to override the data alignment that we set in the report according to the value of the application item like
    If my application item value is US, then i need the column alignment of both the column"empno" and "Name" to be left and if my application item value is AR, then i need the column alignment of both the column "empno" and "Name" to be right. Whether is it possible to achieve the dynamic alignment to the report data of both the columns "empno" and "Name" according to the application page item value.
    And also in the case of page item i have a page item with a name P1_NAME in which it has a Element Horizontal/Vertical alignment to left.
    I need that element alignment of the page item to behave dynamically according to the application page item, like if the application page item is US then the element alignment of the page item has to be left and if the application page item is AR then the element alignment of the page item has to be right.
    Whether is it possible to achieve my above two scenario's friends. Kindly help me with this.
    Thanks in advance.
    Brgds,
    Mini

    Kees,
    Your approach is excellent and brilliant:-)
    I tried with your steps and i can achieve those alignment in both ways like you said(either on page load/through DA).
    But im going with the DA way. I have certain query regarding this kees.
    <li>Suppose if the report, is classic whether i can go with the same approach that i have achieved alignment with the IR report.
    <li>Currently through the DA way, i used the page item in the condition. Is it possible to use the application item instead of page item in DA. Because im going to use the application item FSP_LANGUAGE_PREFERENCE for getting the code either 'AR' or 'US'.
    <li>Finally i need this kind of restriction for the page item also, consider like i have a page item P1_X with an Element Vertical/Horizontal alignment as left. Now i need to change that alignment to right according to the application page item value, hence i can give application item condition for the page item like below
    PL-SQL EXPRESSION: :FSP_LANGUAGE_PREFERENCE = 'AR'
    i need the element alignment of the page item to behave dynamically suppose if the application item value is AR then the element alignment of that page item has to be right if the application item value is US then the element alignment of that page item has to be left, irrespective of the page item Element Vertical/Horizontal alignment that was set to it.
    Thanks for your kind help
    Brgds,
    Mini

  • Formula column value not updating in table?

    Hi all,
    I create the sample for master/detail form. In detail for prdcode,rate,qty,amount is there. When select prdcode it fetching prdcode,rate in a record and if you type the qty the amout will come based on formula(property) :qty*:rate.
    It is available on screen. But when i store the data, in backend table the amount is be a null.
    What is the problem.
    Help me in this regards,
    kanish

    Hi kanish
    Regarding Nul...
    -u have to make sure that the formula is working fine and displaying the result in the form screen
    -then the item u r storing MUST be a db item >yes and has a column name
    -first of all select Help > display_error in the forms runtime may a db item error arais and the record is not correctly saved as u imagined.
    u have 2 choices for the solution , i had both before may be it's not very cute but it will work...
    1. In when-validate-item Trigger or related item triggers pls follow
    SELECT Nvl(( :qty*:rate ) ,0)
    INTO :UR_ITEM
    FROM DUAL;2.In Pre-Update,Pre-Insert & Pre-Delete Triggers Pls assign the result of ur formula column to the item u want to calc as supposing u r doing the calc of formula in non-db item , then put the following in triggers mentioned ...
    : item_name :=:qty*:rate;Hope this helps...
    Regards,
    Amatu Allah.

  • Oracle BPEL - Does not cater for not null columns and use of "default".

    Oracle BPEL - Does not cater for not null columns and use of "default".
    BPEL fails with message:
    ORA-01400: cannot insert NULL into ("EDDB"."SEISMIC_LINES"."COORD_SYSTEM_ID")
    But SQL*PLUS command works:
    INSERT into EDDB.SEISMIC_LINES
    (etc)
    regards
    Allan Ford
    Analyst / Programmer - IT Application Services, IT Services, Shared Business Services
    Santos Ltd
    Level 4, 91 King William Street, Adelaide SA 5000
    Phone: 08 8224 7944 Fax: 08 8218 5320
    Email: [email protected]

    note: BPEL keeps it's own "offline" copy of table and database items. A column that is marked not null in the database can be marked as nullable in this area. (if you kmow that a trigger is going to cater for this ..)
    One workaround is to use a trigger to provide value rather than use the column default ..

  • Can we use formula column in lexical parameter in sql query ...

    hi
    can we use formula column in lexical parameter in sql query ...
    as example
    i want to give
    select * from & c_table
    forumula
    function c_table
    if :p_sort = 1 then
    return 'dept'
    else
    return 'emp'
    end;
    c_table formula column
    is this possible ...
    i have such example in oracle apps reports
    if i try in ordinary report usinf emp table it show error ..
    how we can give formula column...
    please help me in this regard...
    Edited by: 797525 on Feb 20, 2012 9:31 PM

    thanks sir,
    iam not exactly saying select * from &c_table but some thing that like columns in select stmt also will be populated in user_parameters ,there are lot of table select.......from     mtl_demand md,     mtl_system_items msi,     mtl_txn_source_types     mtst,     mtl_item_locations loc     &C_source_from &C_from_cat
    &c_source_from and &c_from_cat formula column and there are defined at report level only ......
    pl/sql code &c_source_from is
    function C_source_fromFormula return VARCHAR2 is
    begin
    if :P_source_type_id = 2 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id = 3 then return(',GL_CODE_COMBINATIONS gl');
    else if :P_source_type_id = 6 then return(',MTL_GENERIC_DISPOSITIONS mdsp');
    else if :P_source_type_id = 5 then
         if :C_source_where is null then
              return NULL;
         else
              return(',WIP_ENTITIES wip');
         end if;
    else if :P_source_type_id = 8 then return(',MTL_SALES_ORDERS mkts');
    else if :P_source_type_id is null then
    return(',MTL_SALES_ORDERS      mkts,
    MTL_GENERIC_DISPOSITIONS mdsp,
    GL_CODE_COMBINATIONS gl ');
    else null;
    end if; end if; end if; end if; end if; end if;
    RETURN NULL; end;
    this is forumula column i hope that you understand what iam saying
    please help me in this regard....
    thanking you...

  • [Forum FAQ] SharePoint 2013: Extracting values from a multi-value enabled lookup column and merge values to a multi-value enabled column

    For some business requirements, users want to extract values from a multi-value enabled lookup column
    and add items to another list based on each separate value. In contrast, others want to find duplicate values in the list and merge associated values to a multi-value enabled column and then
    add items to another list based on the merged value. All of these can be achieved using SharePoint Designer 2013 Workflow.
    How to extract values from a multi-value enabled lookup column and add items to another list based
    on each separate value using SharePoint Designer 2013.
    Important actions: Loop Shape; Utility Actions
    Three scenarios
    Things to note
    Steps to create Workflow
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013.
    Important actions: Call HTTP Web Service; Build Dictionary
    Things to note
    Steps to create Workflow
    How to
    extract values from a multi-value enabled lookup column and
    add items to another list based on each separate value using SharePoint Designer 2013.
    For example, they have three lists as below. They want to
    extract values from the Destinations column
    in Lookup2 and add items to Lookup3 based on each country and set Title to current item: ID.
    Lookup1:
    Title (Single line of text)
    Lookup2:
    Title (Single line of text), Destinations (Lookup; Get information from: Lookup1 in Title column).\
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Important action
    1. Loop Shape: SharePoint Designer 2013 support two types of loops: loop n times and loop with condition.
    Loops must also conform to the following rules:
    Loops must be within a stage, and stages cannot be within a loop.
    Steps may be within a loop.
    Loops may have only one entry and one exit point.
    2. Utility Actions: It contains many actions, such as ‘Extract Substring from Index of String’ and ‘Find substring in String’.
    Three scenarios
    We need to loop through the string returned from the look up column and look for commas. There are three
    scenarios:
    1.  No comma but string is non-empty so there is only one country.
    2.  At least one comma so there is at least two or more countries to loop.
    3.  In the loop we have consumed all the commas so we have found the last country. 
    Things to note
    There are two things to note:
    1. "Find string in string (output to Variable:index)"  will return -1 if doesn't find
    the searched for string.
    2. In the opening statement "Set Variable: Countries to Current Item:Destinations" set the return
    field as  "Lookup Values, Comma Delimited".
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Destinations (Lookup; Get information from: Lookup1 in Title column).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup2.
    Add conditions and actions:
    Start the workflow automatically when an item is created.
    Add item to Lookup2, then workflow will be started automatically and create multiple items to lookup3.
    See the below in workflow History List:
    How to merge values to a multi-value enabled column and add item to another list based on the
    merged value using SharePoint Designer 2013
    For example, they have three lists as below. They want to find duplicate values in the Title column in
    Lookup3 and merge country column to a multi-value enabled column and then add item to lookup2 and set the Title to Current Item: Title.
    Lookup1:
    Title (Single line of text)
    Lookup3:
    Title (Single line of text), Country (Single line of text).
    Lookup2:
    Title (Single line of text), Test (Single line of text).
    Important actions
    "Call HTTP Web Service"
    action: In SharePoint 2013 workflows, we can call a web service using a new action introduced in SharePoint 2013 named Call HTTP Web Service. This action
    is flexible and allows you to make simple calls to a web service easily, or, if needed, you can create more complex calls using HTTP verbs as well as allowing you to add HTTP headers.
    “Build Dictionary"
    action:
    The Dictionary variable type is a new variable type in the SharePoint 2013 Workflow.
    The following are the three actions specifically designed for the Dictionary variable type: Build Dictionary, Count Items in a Dictionary and Get an Item from a Dictionary.
    The "Call HTTP Web Service" workflow action would be useless without the new "Dictionary" workflow action.
    Things to note
    The
    HTTP URI is set to https://sitename/_api/web/lists/GetByTitle('listname')/items?$orderby=Id%20desc and the HTTP method is set to “GET”. Then the list will be sort by Id in descending order.
    Use Get
    d/results(0)/Id form
    Variable: ResponseContent (Output to
    Variable: maxid) to get the Max ID.
    Use Set
    Variable: minid to Current List:ID to get the Min ID.
    Use Copy from
    Variable: destianation , starting at
    1 (Output to
    Variable: destianation) to remove the space.
    Steps to create Workflow
    Create a custom list named Lookup1.
    Create a custom list named Lookup2, add column: Test (Single line of text).
    Create a custom list named Lookup3, add column: Country (Single line of text).
    Create a workflow associated to Lookup3.
    Add a new "Build Dictionary" action
    to define the http request header:
    Add a Call HTTP Web Serviceaction, click on
    this and paste your http request.
    To associate the
    RequestHeader variable, select the Call action property,
    set the
    RequestHeaders property to
    RequestHeader:
    In the Call action, click on
    response and associate the response to a new
    variable: ResponseContent (of type Dictionary).
    After the Call action add Get item from Dictionary action to get the Max ID.
    Add Set Workflow Variable action to get the Min ID.
    Add Loop Shape (Loop with Condition) to get all the duplicate titles and integrate them to a string.
    Create item in Lookup2.
    The final Stage should look like this:
    Start the workflow automatically when an item is created.
    Add item to Lookup3, then workflow will be started automatically and create item to lookup2.
    See the below in workflow History List:
    References
    SharePoint Designer 2013 - Extracting values from a multi-value enabled lookup column into a dictionary as separate items:
    http://social.technet.microsoft.com/Forums/en-US/97d34468-1b53-4741-88b0-958472f8ca9a/sharepoint-designer-2013-extracting-values-from-a-multivalue-enabled-lookup-column-into-a
    Workflow actions quick reference (SharePoint 2013 Workflow platform):
    http://msdn.microsoft.com/en-us/library/jj164026.aspx
    Understanding Dictionary actions in SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/jj554504.aspx
    Working with Web Services in SharePoint 2013 Workflows using SharePoint Designer 2013:
    http://msdn.microsoft.com/en-us/library/office/dn567558.aspx
    Calling the SharePoint 2013 Rest API from a SharePoint Designer Workflow:
    http://sergeluca.wordpress.com/2013/04/09/calling-the-sharepoint-2013-rest-api-from-a-sharepoint-designer-workflow/

    GREAT info, but it may be helpful to note that when replacing a portion of the variable "Countries" with a whitespace character, you may cause the workflow to fail in a few specific cases (certain lookup fields will not accept this and will automatically
    cancel).  I only found this out when recreating your workflow on a similar, but much more complex list set.  
    To resolve this issue, I used another utility action (Extract Substring from Index of List) to clear out the whitespace.  I configured it as "Copy from
    Variable: Countries, starting at
    1 (Output to Variable: Countries), which takes care of this issue in those few cases.
    Otherwise, WOW!  AWESOME JOB!  Thanks!  :)

  • Formula column equivalent in Data Template

    Hi all,
    I'm working with my first data template and fumbling my way through. I was able to generate the XML output and apply my template. I have some idea on how to burst too, but I'm stuck on how to get the current user's email address. In Oracle Reports, I could just create a formula column and get any specific information needed. How do I do the same in Data Templates?
    TIA,
    Alka

    HI,
    Can I know How can we create the formula column like if then else logic in the Data template?
    Regards
    Boopathi

  • Can text be displayed in a formula column using mathematical functions?

    I am working with Financial Reports version 11.1.1.3 and I'm trying to accomplish the following scenario:
    Column D is a data column
    Column E is a text column containing the value "TEXT"
    Column F is a formula column with the following formula: IfThen([D]=0,[E],[D])
    What I want to see happen is if the value in column D is 0 then I want the value "TEXT" to appear in column F, otherwise; I want to show the data value that is in column D. Is it possible to display text in a formula column and if so, what is the syntax for that? Or does anyone have another way to accomplish this? Any help would be appreciated.
    Thanks!

    Short answer: No.
    For your particular issue, I would suggest putting your TEXT value in the #zero and #missing overrides in Report Studio.
    In general, Hyeprion Reporting does not do any real text validations or functions like you could use in Excel.

  • Formula column as parameter

    Hi All,
    I have a formula column and I want to display this formula column as paramter in the report.
    Kindly help...
    Thanks..

    user12058432 wrote:
    Thanks for the reply..
    Actually I have a computed value i.e., formula coumn and this should appear as a parameter so that the records can be filtered based on
    this value..
    Thanks..use before parameter trigger
    do your computation there
    pass the computed value to a parameter
    so that your parameter get value when parameter form appears

  • Not able to genrate xml from rdf if formula column is returning 6000chrs

    Hi All,
    can anybody help me in this matter.
    I am using report 6i to devlop report then registered it to apps with a rtf template and in that report there is a formula column and used to return text more than 10000 chars. but if there is more than 6000 chars are returning from this formula column is not not able to genrate xml.
    error we are getting is
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    The following tags were not closed: XXCUS_POPR, LIST_G_PO_HEADER_ID1, G_PO_HEADER_ID1, CF_LONG_TEXT. Error processing resou...
    Any help will be apreciated.
    thnx
    Harry.

    What is the application release?
    Can you find any details about the error in the OPP log file?
    Please search MOS website for "Cannot view XML input using XSL style sheet" and go through the docs.
    Thanks,
    Hussein

  • How to query non database items

    hi every one
    I have database block has database items and non database items
    i want to make query in that non database items to retrieve data by that non database items and database items
    thinks

    Hi Every one
    I want to use the non databsae item in query to retireve data by it
    Example
    In table emp
    emp_id
    emp_name
    Dept_id
    But in Form
    Emp_name
    Dept_name
    When endtr data open lov to retireve Emp name and emp id
    and when enter department name in table enter dept id but in form user see dept name in form .
    but if he try to use dept name in query he can't because it non database item .
    How can i use this item in my query to retireve data by dept name ?

  • I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1.

    I have a column where I have implemented writeback, its working fine. On top of this I need to show 0 as No and 1 as yes in our report, that is also done. Now I want to enter Yes in a column where it was no and I want database table to get update with 1. I am not sure how to do it. SOmeone please help me out.

    Hi ,
    In your write back XML  try the below  query insert
    INSERT INTO TABLE_XYZ (attribute1)  values (SELECT CASE  WHEN @{C1}=’Yes’ then 1 when @{C1}=’No’ then 0 else null end from dual)
    Regards
    Rajagopal

  • How to use dynamic database item in Fast formula

    Dear All
    How to use Element Pay value in Fast Formula
    Element Name: Transport_Allowance
    Input Values : Name Units User Enterable Database Item
    Pay Value Money No Yes
    Amount Money Yes Yes
    Balance Feeds : Value Name Balance Name Units
    Pay Value Transportation Amount Money
    Formula
    DEFAULT FOR ASG_SALARY IS 0
    DEFAULT FOR TRANSPORTATION_AMOUNT_ASG_RUN IS 0
    ALIAS ASG_SALARY AS Emp_Salary
    ALIAS TRANSPORTATION_AMOUNT_ASG_RUN AS Emp_Trans_Amt
    V_CALCULATED_SALARY = Emp_Salary + Emp_Trans_Amt
    RETURN V_CALCULATED_SALARY
    Using the above formula, I got only Basic Salary only
    How to get the Basic Salary + Transportation allowance in the return value
    Please help me..
    Thanks in advance

    Please check whether the priority of the element with which the fast formula is attached has a priority higher than the Transport_Allowance. If not then cahange the priority of the element to a prriority higher than Transport_Allowance.
    HTH

Maybe you are looking for

  • Adding a batch to a line item in an Order with B1WS

    Hi, I am trying to create code which can update a batch in a line item in an order.  The updating works great, if the batch is already attached to the line item.  However, I am unable to add a batch if one doesn't already exist. Can you please have a

  • Crystal Reports upgrade

    I'm currently looking at the options for migrating off Crystal Reports V10. Two options have been put forward by my IT supplier - Crystal Reports XI and Business Objects XI. Can anyone offer advice on the Business Objects XI option? Is it easy to 'co

  • New Photoshop Fonts not showing

    mark leroy kilwinning Hi im looking for little help and or advice, i recently upgraded to Adobe Photoshop CS5 but I appear to have lost all my downloaded fonts from the CS4 version of the software, when I had CS4 and wanted to add new fonts I just in

  • Camera raw opening doesn't work under bridge

    I can not open raw files with camera raw under Adobe Bridge. I have fot a registered version of Photoshop Elements 11, and here camera raw is working very well. But in Adobe Bridge I get the Message Box:  Bridge's Parent Application is Not Active, Br

  • Datafrom different years 1 table

    Hello all, A table ('main') contains data for multiple years (2009, 2010, 2011) , department and expense. How can I duplicate in Oracle BI 11G : select a.department, a.expense, a.year,b.department, b.expense, b.year, from main a, main b where a.depar