How can I insert into a table other than the default table in a form

Hi,
I want to insert into a table with some fields value of a form of another table. I have written insert code On successful submission of that form, but after submit it gives the following error
An unexpected error occurred: ORA-06502: PL/SQL: numeric or value error (WWV-16016)
My code is like this
declare
l_trn_id number;
l_provider_role varchar2(3);
l_provider_id varchar2(10);
begin
l_trn_id := p_session.get_value_as_number(p_block_name=>'DEFAULT',p_attribute_name=>'A_TRANSACTION_ID');
l_provider_id := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',p_attribute_name=>'A_PROVIDER1');
l_PROVIDER_ROLE := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',p_attribute_name=>'A_PROVIDER_ROLE1');
if (l_provider_role is not null) and (l_provider_id is not null) then
insert into service_provider_trans_records(service_provider_id,transaction_id,role_type_id)
values(l_provider_id, l_trn_id, l_provider_role);
commit;
end if;
end;
Where 'PROVIDER1' and 'PROVIDER_ROLE1' are not table fields.
How can do that or why this error comes ? Any idea?
Thanks
Sumita

Hi,
When do you get this error? Is it while running or while creating the form.
Here is a sample code which inserts a non-database column dummy into a table called dummy. This is done in successful procedure.
declare
l_dummy varchar2(1000);
begin
l_dummy := p_session.get_value_as_varchar2(p_block_name=>'DEFAULT',
p_attribute_name=>'A_DUMMY');
insert into sjayaram903_1g.dummy values(l_dummy);commit;
end;
Please check in your case if the size of the local variable is enough to hold the values being returned.
Thanks,
Sharmila

Similar Messages

  • How can I create a new skin (other than the default skins) for my Captivate Project?

    Hi everyone,
    I am working on a project where my client wants me to create a player skin which is completely different from the default themes that captivate has already. The design which client has shared with me contains in this way:
    1. TOC - should be truncated and can be expanded by pressing "+" button against the Navigation Text. Its like opening and closing the menu bar using + and - buttons
    2. Playback controls required by him are also not in the default skins.
    I dont know, if there is any way to customize the skins to this level inside captivate.
    Please help me out.
    Thanks & Regards
    Vikas Sharma

    Unlikely, I'm afraid.
    The LMS has no control over the playbar that pauses or plays the Captivate content.
    In a Multi SCORM package, the LMS also may be showing a TOC in the SCORM player with links to launch the lesson modules.  This TOC is in addition to the TOC inside the Captivate project file which gives access to sections of the module by jumping to slides that begin those sections.  But the LMS doesn't usually give you any control over the look and feel or functionality of that TOC either. 
    If your client is adamant that they want complete control over these areas, then your best option may be NOT to build this course with Captivate but build it from the ground up with another tool.  E.g. Flash, or Dreamweaver.  Either way, that will add a lot more time and expense to the project.  But if the client has the budget and is unwilling to budge on their requirement, then that's what I would be telling them to do.

  • When I create a stickie note, I can not save any font size other than the default.  How do I save a stickie with a larger or different font?

    How do I save a stickie note with a different font size other than the default?  When I create a note and save it using a larger font, it reopens with the default.

    Unlikely, I'm afraid.
    The LMS has no control over the playbar that pauses or plays the Captivate content.
    In a Multi SCORM package, the LMS also may be showing a TOC in the SCORM player with links to launch the lesson modules.  This TOC is in addition to the TOC inside the Captivate project file which gives access to sections of the module by jumping to slides that begin those sections.  But the LMS doesn't usually give you any control over the look and feel or functionality of that TOC either. 
    If your client is adamant that they want complete control over these areas, then your best option may be NOT to build this course with Captivate but build it from the ground up with another tool.  E.g. Flash, or Dreamweaver.  Either way, that will add a lot more time and expense to the project.  But if the client has the budget and is unwilling to budge on their requirement, then that's what I would be telling them to do.

  • How do I get Distiller to render other than the default page size

    I have double ad I laid out in Illustrator and I need to make a PDF with the Bleed/Trim/Color bars/ETC. In the past I could print to postscript file and run it through distiller, but after distilling, only an 8x11 is created.  I've gone into the edit settings and created another preset that has the default page size set to the size I need it, but it seems counterproductive and not what I'm used to.  Is there something that I'm missing?
    Note: When generating the PS file I've tried selecting both my printer ppd and the device independent option.

    Working in Mac Illustrator CC. Acrobat XI
    I go to Print with these settings:
    Drag the postScript File onto Distiller (Tried various preset settings)
    And I get this – an 8.5 x 11 portion:
    I've also tried printing with my printer PPD:

  • HT1414 I loss my iphone 4, got a iphone 5 and try to restore the iphone info from my laptop.  But the itune requires a password, which I forgot (I set this up two years ago!).  How can I get into my itune to restore the iphone info.

    I lost my iphone 4, got a iphone 5 and try to restore the iphone info from my laptop.  But the itune requires a password, which I forgot (I set this up two years ago!).  How can I get into my itune to restore the iphone info.

    Go to appleid.apple.com and try to login there. If unsuccessful, there is a link to change your password.

  • How can I buy films in languages other than German in Germany? Quite disappointed, i would line to watch films in Original language and not dubbed in strange ways...

    How can I buy films in languages other than German in Germany? Quite disappointed, i would like
    to watch films in Original language and not dubbed in strange ways...

    You are at the mercy of the content owners/copyright holders. They decide what the Apple can sell in each iTS.
    MJ

  • I'm new to ipod touch, 4g and my question is how can i download a contact list other than through facebook etc.

    I'm new to ipod touch, 4g. My questions is how can I download a contact list other than through facebook or yahoo or gmail?

    You can sync the iPod's Contacts app with some other contact programs/mail accounts.
    Just where do you want to get/sync the contacts?

  • HT4550 My bar on my safari is gone, as in i can't go on any website other than the apple store

    My bar on my safari is gone, as in i can't go on any website other than the apple store. how do i get the google bar back!!!

    View > Show Toolbar

  • Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error, so you can load Firefox again.

    Whenever you try to save a PDF file to a location other than the default location ('My Documents'), Firefox freezes & you have to go to the 'Task Manager' to exit Firefox and stop the error. I have Windows XP (Media Center Edition) and all updates (Firefox, Adobe PDF, Microsoft, virus protection, etc) are installed. This has only been a problem since Firefox 4, and isn't a problem in Internet Explorer.

    Hi David,
    Thank you for your detailed question. It sounds like the real issue is pdf files. Are there any antivirus/firewalls that might be blocking this specific file type? or are there any preferences in your control panel that might be blocking this?
    Do you have any stored preferences for PDF files in Firefox?
    *[[Applications panel - Set how Firefox handles different types of files]]

  • [svn:bz-trunk] 17772: Update the url in the tests to use a relative path instead of the default localhost : 8400 so that the tests can pass on appservers other than the default Tomcat .

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

    Revision: 17772
    Revision: 17772
    Author:   [email protected]
    Date:     2010-09-20 15:02:50 -0700 (Mon, 20 Sep 2010)
    Log Message:
    Update the url in the tests to use a relative path instead of the default localhost:8400 so that the tests can pass on appservers other than the default Tomcat.
    Modified Paths:
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationFalseTest/Remoting_NetConnectionTest.mxml
        blazeds/trunk/qa/apps/qa-regress/testsuites/config/tests/EnforceEndpointValidation/Enforc eEndpointValidationTrueTest/Remoting_NetConnectionTest.mxml

  • Configuring a Communication Channel for an AE other than the default IS

    Configuring a Communication Channel for an Adapter Engine other than the default engine.
    See:  help.sap.com for Communication Channel http://help.sap.com/saphelp_nw04/helpdata/en/1b/d5ef3b1ad56d4fe10000000a114084/frameset.htm
    It states under 'Adapter Configuration', that you can specify the Adapter Engine you want to use in the Adapter Engine dropdown box.
    I have activated the XI components on my ERP system using transaction SICF, but what do I have to do to make the other adapter engines show up in the dropdown list when configuring an adapter?
    Maybe some background would be helpful:  This is for a scenario that will send a file from an external system to one of the ERP systems in our landscape.  BUT, the system admins have decided to revoke our FTP accounts (because they have their reasons), so I need to create a File Adapter that will drop the file on the file system of that ERP system, due to visibility I want to use the integrated Adapter Engine that comes with the ERP system, but need to know how/what I'm missing in setting up this scenario.

    Hi Anesh,
    >>>>but what do I have to do to make the other adapter engines show up in the dropdown list when configuring an adapter?
    in order to use some other adapter engine you
    have to install it first by dafault only one
    (central) adapter engine is used and it is all
    most clients need
    if you'd like to use some other adapter engine
    (decentralized for example) have a look at thid guide:
    <b>Configuring a Local Adapter Engine to Work with a Central Instance</b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/03fd85cc-0201-0010-8ca4-a32a119a582d
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • Keychain services API and dealing with Keychains other than the default

    Hello,
    So I've been doing some C work with the Keychain services API. But I can't figure out how to set the Keychain for a function to something other than the default, which is set by passing NULL.
    For example,
    status = SecKeychainAddGenericPassword (
    *NULL, // default keychain*
    10, // length of service name
    "SurfWriter", // service name
    10, // length of account name
    "MyUserAcct", // account name
    passwordLength, // length of password
    password, // pointer to password data
    NULL // the item reference
    This function is defined here:
    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//apple_ref/c/func/SecKeychainAddGenericPassword
    and the data type for the Keychain is here:
    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//appleref/doc/cref/SecKeychainRef
    But neither helps me at all for being able to edit a keychain that isn't the default Keychain.
    I appreciate any help, thanks.
    Message was edited by: Smerky

    http://developer.apple.com/documentation/Security/Reference/keychainservices/Ref erence/reference.html#//apple_ref/c/func/SecKeychainOpen

  • Deploying Crystal Reports 2008 on a website other than the default website

    Hi,
    We have an ASP.NET 2003 web application using CR 2008 as reporting tool.
    To deploy the application, we are using the CR 2008 mergemodules.
    If the application is installed into the default website, this works fine, but if another website is selected, the mergemodule still installs CR 2008 to the default website.
    To overcome this problem, the crystalreportviewers12 virtual directory has to be created in the selected website.
    But if the application is installed directly into the website, and not into a virtual directory of the website, problems occur, like images not showing up.
    I would like to know if there exists documentation regarding deployment into websites, other than the default website and what configurations have to be done to make it work.
    Best regards,
    Ângelo Vilela

    See the following articles;
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a0437ea8-97d2-2b10-2795-c202a76a5e80
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50aa68c0-82dd-2b10-42bf-e5502b45cd3a
    Also, the developer help files contain more info:
    https://boc.sdn.sap.com/developer/library
    Ludek
    Follow us on Twitter
    http://twitter.com/SAPCRNetSup

  • How can I install to a drive other than C?

    I installed the CS6 Master Collection trial version. During the installation, I specified a destination folder on my D: drive (C: is a small SSD drive meant to hold only Windows).
    For the 32-bit versions of the programs, the shortcuts created in the Start Menu point to the D: location I specified during installation, but clicking on them gets me a "file not found" error, because the actual programs were placed on the C: drive. They work if I copy the installed Adobe folder and its full contents over to the appropriate D: location.
    The 64-bit versions are a different mess: Unlike with the 32-bit versions, the installer placed the 64-bit versions of the programs in the specified D: drive folder, but when I attempt to start the programs, I get the "Configuration Error: Please uninstall and reinstall the program; Error: 1" message. Presumably this is because some of the configuration files or settings the programs are looking for are actually pointing to locations on the C: drive, where the installer put them despite my directions. But I have no idea which files or settings they are, or how to find them.
    How can I fix these configuration errors and get the 64-bit versions working?
    If anyone from Adobe sees this, can you please fix the installer so that it installs the ENTIRE package where I specified, and that all the various pieces installed know where the rest of the pieces are in a non-C drive installation?
    My system:
    Windows 7 SP1
    Intel Core i7, 8GB RAM
    C drive: 60GB SSD (Windows system files)
    D drive: 1TB HDD (All other programs and files, including my Windows User folders)

    Yes, I have redirected my User folder to the D: drive.
    I know that some shared components must reside on the C: drive; that's fine. I just don't have room for the entire installation on there.
    The real issue here is that, when a drive other than C: is selected as the destination, the CS6 package installs into a broken state every time, out of the gate, on my system. Some components get installed to D: and some to C:, but the various components of the programs seem confused about what exists where, as shown below:
    I select a folder on D: as the destination folder for the install, and here is what I get:
    64-bit versions of the package -- Program files are installed to the D: drive as specified, but attempting to start them results in a configuration error message stating that the program must be uninstalled and reinstalled, and lists "Error code: 1".
    32-bit versions of the package -- Program files are installed to the C: drive against what I specified. The shortcuts installed in the Start menu for the 32-bit versions point to the locations where these program files SHOULD be, on the D: drive. If the Adobe folder containing the program files is copied over to the correct location on D:, these programs function normally with no errors.
    I have the 32-bit versions working by copying the program files from C: to D:. I just want to get the 64-bit versions working as well.
    Any help you could give would be greatly appreciated; I'm really looking forward to testing the CS6 suite on my system!

  • How to maintain itunes on a drive other than the system drive

    I would like to have itunes on a drive other than the Windows 7 operating system drive, and have it stay there.
    Never mind...I found a post which applies.

    Hi Maciejhttp://forums.adobe.com/people/Maciej%20Przepi%C3%B3ra
    Thanks for your inputs.
    I have memory leaks in my code. I have tried iDialog->Release() code which reduces some of the memory leaks
    Though I want to use more clean method of InterfacePtr.
    "To prevent reference counts  from incrementing, as in Type 1a and 1b, use this constructor, which does not  call IPMUnknown::AddRef:"
    Which Constructor you are pointing out, I didn't get it.
    I tried InterfacePtr<IDialog> iDialog((IDialog *)iWidgetParent->QueryParentFor(IID_IDIALOG));
    It started giving me assert again.
    Please give an example how to do it or which InterfacePtr constructor doesn't call AddRef().
    Many thanks for helping me with this.
    D

Maybe you are looking for

  • Adobe Illustrator CC 2014 Quit Unexpectedly (mac yosemite)

    Hi I don't use any 3rd party plugins, I've never used illustrator on this mac before. Here's the crash report; What should i do? Thanks. Process:               Adobe Illustrator [1473] Path:                  /Applications/Adobe Illustrator CC 2014/Ad

  • Mass change of Payment Method for Vendor

    Is there any way to do mass change of Payment Method for Vendor (trx. XK02) without ABAP? Need to change 1500 vendors.

  • How i reset my ipad 2?

    My problem is that my ipad doesnt let me go in on goole it says check your connection. My other ipad works fine. Idont know what is the problem. Help please

  • Opening a file using Swing

    Building a swing client mail application has one huge hickup and can't think of a good solution. How do you automatically open an email attachment?? If its a .doc document, it should open a word document automatically instead of reinventing the wheel

  • Postal code format

    Hi i would like to format a field which is a postal code in a screen to have something like ''A9A 9A9'' Do you have an idea on how to format the field to have the postal code like that? Thanks you!