Custom Form Question

Hi All,
I have developed a New Custom form from scratch using TEMPLATE.fmb . I have generated it and it allows me to save OK. I have based the Block on a view . The primary Key for my Table is vend_cat_id.
But, when I Query it and press the down arrow key to navigate to records (Its a single record block) or even change some field in the block , I get the error "FRM-40657 : record changed or deleted by another user".
My ON-lock trigger calls my custom package : and my code in my Custom pkg is as below, as per the Forms Dev Guide :
Any ideas what I may be doing wrong or can check ?
Many Thanks
Shankar
PROCEDURE Lock_Row IS
          counter      NUMBER;
          cursor c1 IS
          select      *
          from XX1
          where rowid = :blk.row_id
          for update nowait;
          recinfo      c1%rowtype;
begin
counter := 0;
loop
     begin
          counter := counter + 1;
          open c1;
          fetch c1 into recinfo;
          if (c1%notfound) then
               close c1;
          fnd_message.Set_Name('FND','FORM_RECORD_DELETED');
               fnd_message.Error;
               Raise form_trigger_failure;
          end if;
               close c1;
if (      (Recinfo.vend_cat_id = :blk.vend_cat_id)
AND (      (Recinfo.vendor_id = :blk.vendor_id)
     OR( (Recinfo.vendor_id IS NULL) AND (:blk.vendor_id IS NULL))
AND (      (Recinfo.vendor_site_id = :blk.vendor_site_id)
     OR( (Recinfo.vendor_site_id IS NULL) AND (:blk.vendor_site_id IS NULL))
AND (      (Recinfo.start_date_active = :blk.start_date_active)
     OR( (Recinfo.start_date_active IS NULL) AND (:blk.start_date_active IS NULL))
) -- end if
then
     return;
else
fnd_message.Set_Name('FND','FORM_RECORD_CHANGED');
     fnd_message.Error;
     raise form_trigger_failure;
end if;
exception
when APP_EXCEPTIONS.RECORD_LOCK_EXCEPTION then
     if (c1%isopen) then
     close c1;
     end if;
                                                  APP_EXCEPTION.Record_Lock_Error(Counter);
end;
end loop;
end lock_row;

Hi again,
Yes, I think that's the problem. It doesn't make sense to get a 'Do you want to save your changes?' message if you don't have anything to save (and if you have a non-database block, Oracle assumes you don't have anything to save).
Anyway, you can include a warning message in one of the form triggers that execute when someone tries to close the form (KEY-EXIT would be a possibility).
I hope it helps.

Similar Messages

  • No standard message displayed in the new custom form

    Hi All,
    I developed a new custom form for FA module using Template.fmb. It is not showing any standard messages such as "Transaction complete: 1 records applied and saved". The records are getting saved. I even tried setting in when-new-form-instance ":SYSTEM.MESSAGE_LEVEL := 0" but that too didn't work out.
    Please help on how to display the standard message. Please let me know if I am not clear with my question
    Details
    Oracle Form version: 6i
    Application version: 11.5.10

    Can you see if something in the code is overriding your message level?
    Can you set the message level to 0 in the pre-commit trigger?

  • How to create a Custom form Template..

    Hi Eperts,
    I would like to seek a help from you regarding creating a custom form template on custom BO. could you guide me where i have gone wrong in successfully creating a Print form. I am in dead need of this particular solution for a client. It is hampering my entire scenario......
    1. I had created a Custom BO and I am trying to preview the created form on the OIF screen.
    2. I had created a form on above of the custom BO. This created form and form group is activated and configured as of needed by opening it through ALD (Adobe Life Cycle Designer).
    3. I had created a BAC element with some scoping questions and activated it. After activating it i had deployed the Business configuration.
    4. my solution got updated with the created and deployed BAC elements and i had done scoping for those elements to make my created form available.
    5. I can see my form template in Form Template maitaince under Application user managment WOC. I had made it to be available for all users and published.
    6. All the above steps are done success fully with no errors.
    7. When i accessed my custom BO and tried to preview the created form i am unable to view it and i am seeing the following window.
    Could you help me out in solving this or send me across any detailed document regarding this what you had done previously.
    Thanks in advance for your valuable help...
    Regards...
    Hanu K

    It looks like system didn't identify the form template. So please check if the required configuration for "Preview" modal dialog is done properly. In the SDK documentation, refer to section "8.4.3.4 Create a Preview Button for a Print Form"
    If you have already done the steps mentioned in the section 8.4.3.4, but still facing the issue then let me know.
    Best regards,
    Hari

  • How to set org in a Oracle custom form

    Hi,
    We are migrating a custom form from 11i to R12. But the form and LOVs in the fields dont return any values in R12. The custom views attached to these LOVs, return values in toad when the org is set. We think that the issue is that the org is not initialized in the form.
    Can anyone help on how to resolve this?
    Would it help if we used "MO_GLOBAL.SET_POLICY_CONTEXT('S',fnd_global.ORG_ID);" in the when new form instance trigger in the form.
    Thanks

    YOu should ask your question in an ebusiness-suite related forum.

  • To replace standard smartform by a custom form, to be used in PRINT PREVIEW

    Hi,
    I have a requirement in CRM 2007 webUI. If we try to create a sales order, then we have a toolbar option button with title "PRINT PREVIEW". It uses the custom smart form "CRM_ORDER_CONFIRMATION_01.
    I have to replace this standard form by a Z custom form. This form has soem additional data required for business needs.
    Field technical details of the button is :
    1. Component Name-  BT115H_SLSO
    2. View   - SOHOverview
    3. Context Node - THTMLB
    4. Attribute- BUTTON_8
    5. Role key - BP_POW_USR
    6. Comp. Usage - CUBT Sales Order
    7. Object Type - BT115_SLSO
    Please reply as soon as possible.

    To figure this out you need to do the following:
    First determine the action profile for the transaction in question in the IMG.
    CRM->Transactions->Basic Settings->Define Transaction Types
    Display the detials of the transaction and you will see the action profile.  Next copy that action profile by using transaction SPPFCADM.  Then in the action defintion for the print action, replace the standard smartform definition with your z-form. 
    Finally go back into the transaction definition and assign the z-profile to your transaction type.  Please note you should only do this with "z-transactions".
    I'm not going to go into further detail as this is basic CRM configuration and is valid for all releases.  Please look at the best practices guides, or do a search in the CRM General and Framework forum for further information on how to do the configuration steps.
    Take care,
    Stephen

  • How to Locate the Custom Form Name  in Oracle Apps

    Hi hussein,
    We had a migration project from 11.0.3 NT to 11.5.10.2 AIX, and it include
    1 form I guess. The client user is showing me the navigation tree where the customized form was located.
    She opened the NT Oracle Apps 11.0.3 and it is showing the following:
    Cash Management Responsibilty
    + Other
    Enter Adjustment >> this is the customized form that she showed me
    When the form opened, i shows a block with parent table "AP_BANK_ACCOUNTS_ALL" and a child table
    "CEC_ADJUSTMENT_RECON".
    My question is, based on the navigation, how do I know which is the location of the forms.fmx? of what
    module was it registered to?
    ==============
    I tried to navigate to the custom form and open it, then click "Help --> About"
    from the menu bar, but it does not show you the form name and the forms executable location path,
    (not like the standard forms of oracle where it shows the form name),
    the "help" being shown is the help of the runtime form in a normal default oracle form window.
    so I assumed that the custom form has been registered but not following the standard procedure.
    ==============
    How do I reverse locate it? base on the "tree" > Enter Adjustment
    Thanks a lot

    Hi,
    Please see (Note: 176852.1 - Integrating Custom Applications with Oracle Applications Release 11i), Step 10-f.
    For the (Help > About) issue, please see if (Note: 556755.1 - Forms Version Not Showing On 'About Oracle Applications' Form From Help Menu) helps.
    Btw, I guess we had a similar discussion before in this EBS 11i Customized Oracle Forms and Reports.
    Regards,
    Hussein

  • How to make a custom form, buttons etc... please...

    I mean, how to make a form (for example, JFrame) with arbitrary form (geometry, for ex, round, oval, star like etc). I think you understand what i mean.
    Of course, i think i can use winApi, but it's only for windows. It doesn't suit for Java in this problem solution.
    That question also about cusomizing form of buttons, fields.. etc..
    i think, everything.
    What can java allows to cusomize and what not.
    Thanx!!

    I am just a learner and so i can just suggest you a strategy to implement Customized forms in JAVA. However i am sure that in practice it will work as far as Windows OS are concerned. Here is it:-
    The basic IDEA is to declare a native function in JAVA that makes JNI calls which will be further processed by Win32API and processed output will result into an elliptic or any polygonal shaped forms.
    To achieve declare some function as follows:
    public native void createEllipticalForm(formName formRefrance);
    create a Win32 Compiled DLL that manages this function as follows:
    (Mindwell, i havent stated what you call as pure-code but just a pseudo-code to the actual implementation)
    public native void createEllipticalForm(formName formRefrance)
    /* Search for the below stated Functions in Win32 API and work on
    them. I see a ray of success if you work with these functions properly.
    Further-more I assume that you are aware with concept of HANDLES */
    createEllipticRegion(); //WINDOWS.H
    showWindow(handleToTheForm); //WINDOWS.H
    Search for "createEllipticRegion() or showWindow()" on the GOOGLE to get the pure win32 API Code for Creating Customized Forms.
    Reply me in case any of you people get a solution based on my idea.
    [by VISH]

  • Calling custom form to standard form based on passing parameters by pers..

    Hi Everyone,
    I have a urgent requirement related to form personalization like Calling custom form to standard form based on passing some parameters and after click on save icon then custom form should be enable and open. how to achieve this functionality through personalization.
    In brief ......Responsibilty -> Enterprise Asset Management->work order form and in this form's tool menu attach a custom form which comes other responsibility(here no issue) issue is that which trigger and condition used and what should be Action attribute/option. How to disable or enable tool form on some specific navigating the form.
    and how pass the parameter through current using form fields.
    plz help me out........it's urgent.
    thanks,
    Abh....

    Abh,
    Forms Personalization is a feature of the Oracle Enterprise Business Suite (EBS) not a feature of Oracle Forms. Please post your question in the General EBS Discussion forum. If you have a general Forms question, by all means, ask it here! ;-)
    Craig B-)
    If someone's response is helpful or correct, please mark it accordingly.

  • Implementing Key Flex fields in Oracle apps custom form.

    Hi all,
    I have developed a custom form from scratch. Need to implement key flex fields in my form. Kindly help me and please share any document for Key flexfields implementing. Quick response will be highly appreciated. Thanks a in advance.
    Please mail to [email protected]
    Regards
    Aiyaz
    Please send me a complete document for implementing flex fields in a custom form. Screen shots in the docs will be very much help full.
    Regards
    Aiyaz
    Edited by: user6422762 on Jan 27, 2011 9:44 PM

    There are so many special cases and cases with Oracle Apps that you will need to ask this question in the dedicated Apps tech forum rather than here. Please post this question here: OA Framework

  • Issue with Custom Form opening in Oracle apps

    Hello,
    I am not sure if this is correct place for this question.
    Hi,
    I have created a custom form and tested in forms 6i. I have moved the fmb and fmx files from my local machine to unix box and registered the form in oracle apps (11.5.10).
    However, when I open the form from oracle apps, form opens OK but some of the field in form are blacked out-I am able to see the field but its black in color. When I type in field and highlight it with my mouse, the value I typed shows up.
    What can be issue here?
    I moved both fmb and fmx from my local machine to UNIX box.
    Please help...

    NV,
    Have you resolved your issue? I've run into this before. I failed to subclass all of my objects properly from the APPSTAND.fmb in accordance with the [Oracle Applications Developers Guide | http://download.oracle.com/docs/cd/B25516_18/current/acrobat/115devg.pdf]. If you have your items subclassed correctly, double check to make sure your Forms Builder is using the correct color pallet.
    Hope this helps.
    Craig...
    If mine or someone elses response was helpful, please mark it accordingly

  • How To dynamically change values in custom form

    Hi,
    Requirement is to change values in custom form dynamically that are passed by Global variables through standard form .
    I have used forms personalization to call custom form and passing some parameters to custom form using global variables.
    Now i have to change values displayed in custom form(already opened) when user moves from one record to another record.
    I cannot change the standard form.Only i have write logic in custom form that dynamically changes values as user moves from one record to another in standard form.
    Global variables values will be different for each record.
    Pls let me know how i can achieve this.
    Regards
    Udit

    Udit,
    Your question should be posted to the Enterprise Business Suite (EBS) forum. This forum is dedicated to non-EBS forms development.
    Craig...

  • Display an XML file Content as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013

    Hello everyone,
    Within a list form, user has to select a value amongst a huge number of availables options.
    Instead of using something like a dropdown list, which would be very boring to parse, I would like to display possibles values in a treeview.
    To do that, I tried to use an <Sharepoint:SPTreeView bind to a SharePoint:SPXmlDataSource who read data from an XML File.
    <SharePoint:SPXmlDataSource runat="server" DataFile="../../SiteAssets/App_Data/myfile.xml" AutoSave="True" XPath="" ID="myDataXml"></SharePoint:SPXmlDataSource>
    <SharePoint:SPTreeView runat="server" ID="MyTreeView" DataSourceID="myDataXml" />
    But when I try to display the form in my web browser, an error occurs.
    Therefore, my question is : Is it possible to display the content of an Xml file as a treeView in a SharePoint 2013 custom form edited with SharePoint Designer 2013 ?
    If the answer is yes, how ? Which are the required properties for "SharePoint:SPXmlDataSource" tag and "SharePoint:SPTreeView"  tag ?
    What are the requirements to use thoses tags ?
    Regards,
    Florian.
    Ps : I dont have access to the server side of the SharePoint site I am working on.

    Assuming that https://fullsitename is a new URL address did you make sure to update your browser to include it in the Trusted Sites zone?  The message you are quoting is exactly the one you get if you don't have it in Trusted Sites.
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • Form Personalization: Calling custom form

    Hi Folks,
    I need to call a custom form from a seeded form using "Tools" menu and also need to pass parameter.
    Here I was able to achieve this using "SPECIAL 1" from personalization, but the problem here is I was not able to pass parameter from seeded form to my custom form. version of EBS is R12
    Would be vey greatful if someone could help me on same.
    Thanks,
    gvk
    Edited by: gvk on Mar 13, 2011 11:53 PM

    You can pass the parameter only if the called form accepts a parameter.
    If it does, you define a global variable and use it on the called form.
    The following link gives a great example of passing vendor_id.
    http://it.toolbox.com/blogs/apps-traction-blog/how-to-create-a-zoom-using-oracle-form-personalization-12081
    Hope this answers your question,
    Sandeep Gandhi

  • How to localize labels in customized forms in SCSM?

    Hi,
    when customizing SCSM forms I add label controls with the Authoring Tool. This results in a XML like this:
              <AddControl Parent="StackPanel499" Assembly="PresentationFramework, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Type="System.Windows.Controls.Label"
    Left="63.5" Top="39.0357407407408" Right="0" Bottom="0" Row="0" Column="0" />
              <PropertyBindingChange Object="Label_1" Property="Content">
                <NewBinding Enabled="False" />
              </PropertyBindingChange>
              <PropertyChange Object="Label_1" Property="Content">
                <NewValue>Requested by:</NewValue>
              </PropertyChange>
    The content of the label is hard coded within the XML and therefore is always the same, independently from the chosen language of the console.
    The question is: How can I refer/bind the Content property to a DisplayString from the LanguagePacks section of the Management Pack?
    I tried something like this in my Management Pack:
    Defined a FormStrings section:
            <FormStrings>
              <FormString ID="formTestString">$MPElement[Name="dhTestString"]$</FormString>
            </FormStrings>       
    Defined a new binding to the form string (googled from different souces):
              <PropertyBindingChange Object="Label_1" Property="Content">
                <NewBinding Enabled="True" Path="Strings[formTestString].Value" Mode="Default" BindsDirectlyToSource="False" UpdateSourceTrigger="Default" />        
              </PropertyBindingChange>
    Defined a string resource:
        <StringResources>
          <StringResource ID="dhTestString" />
        </StringResources>
    Defined the display strings in the LanguagePacks section of the MP:
            <DisplayString ElementID="dhTestString">
              <Name>Hello World</Name>
            </DisplayString>
    But after importing the MP, restarting SCSM service and console, the label is not visible in the form, its content is blank.
    Can somebody help me?

    I have no proof otherwise, but I don't believe it is possible to localize a value from within a form extension.
    Label localization uses a RelativeSource binding.
    http://blogs.technet.com/b/servicemanager/archive/2010/02/25/localizing-forms-service-request-example.aspx (note: this blog post talks about localizing labels on custom forms, not form extensions)
    The <NewBinding> and <PropertyBindingChange> capability is a feature of the SCSM console framework and, as far as I can tell looking in the code, it doesn't support the creation of a RelativeSource binding.
    By the way, you're not the only one to have asked this question..a couple people have asked in the forums in the past, but I never saw an answer. In fact, the only other references I can find to localizing labels and such revolves around custom forms or
    correctly applying label values to copies of existing forms (but not applying values to new labels).
    Hopefully I'm wrong and it can be done, but I personally don't know how.
    An admittedly complicated work-around, however, would be to create your own custom XAML control and add it to your form..then you could use the relative source binding on the labels. But creating a custom control requires some experience with Visual
    Studio and C#.
    http://blog.scsmsolutions.com/2011/08/create-custom-user-control-for-scsm-2010/

  • Urgent: Enabling Folder functionality in Custom Form

    Hi!
    I want to enable the folder functionality in my custom form. I'm copying STANDARD_FOLDER object group from standard oracle form and attaching APPFLDR library.
    But when I try to open any folder in my form all the fields get disabled.
    Any help on this will be appreciated.
    Thanks

    Post your question in OA forum:
    http://forums.oracle.com/forums/forum.jspa?forumID=40, this is the forms forum, you'll get more help there.
    Message was edited by:
    Rosario Vigilante

Maybe you are looking for