Change user on runtime  in forms 10g

Dear all,
I want to switch user in oracle forms 10g runtime.
for example I have three user "usr1", "usr2", "usr3" and one main user "main_system"
In forms i have four button i.e bt1,bt2,bt3,bt4
Currently when user access the forms user is "main_system"
If user press button "bt1" then forms connect with "us1".
If user press button "bt2" then forms connect with "us2".
If user press button "bt3" then forms connect with "us3".
Finally user press button "bt4" then forms connect with "main_system"
I hope you will help me and thanks in advance
Regards,
Saeed ul haq

Hi user11957950
Pls share us the code to inspect the problem ...
did u try using the alias of the data base... ?
the following is an example that can help....
BEGIN
:global.quit := 'FALSE';
:global.v_attempt := 0;
END;
WHEN-WINDOW-ACTIVATED-TRIGGER
--MAXIMIZE WINDOWS
SET_WINDOW_PROPERTY(FORMS_MDI_WINDOW, WINDOW_STATE, MAXIMIZE);
SET_WINDOW_PROPERTY('LOGIN_FORM', WINDOW_STATE, MAXIMIZE);
IF :global.quit='TRUE' THEN
  Log_on;
END IF;
ON-LOGON TRIGGER
logon(get_application_property(USERNAME),
      get_application_property(PASSWORD)||'@'||get_application_property(CONNECT_STRING), FALSE);
if not form_success then
  :global.bad := 1;
  raise form_trigger_failure;
end if;
LOGON BUTTON CODE
WHEN-BUTTON-PRESSED TRIGGER
if :LOGIN_BLOCK.USERNAME is null then
  message('User must be entered !');
  go_item('LOGIN_BLOCK.USERNAME');
  return;
end if;
if :LOGIN_BLOCK.PASS_WORD is null then
  MESSAGE('Password must be entered !');
  go_item('LOGIN_BLOCK.PASS_WORD');
  return;
end if;
set_application_property(CURSOR_STYLE,'BUSY');
:global.bad  := 0;
if :LOGIN_BLOCK.CONNECT_STRING is null then
  logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD, FALSE);
else
  logon(:LOGIN_BLOCK.USERNAME,:LOGIN_BLOCK.PASS_WORD||'@'||:LOGIN_BLOCK.CONNECT_STRING, FALSE);
end if;
if :global.bad = 0 and form_success then
  set_application_property(CURSOR_STYLE,'DEFAULT');
  open_form('MAIN_MENU');
ELSE
  :global.v_attempt  := :global.v_attempt  + 1;
  set_application_property(CURSOR_STYLE,'DEFAULT');
  if :global.v_attempt  < 3 then
    MESSAGE('Username/Password was invalid. Please re-enter !');
    go_item('LOGIN_BLOCK.USERNAME');
  else
    MESSAGE('Three Invalid Login Attempts. Account Locked');
    exit_form(no_validate);
  end if;
end if;
CANCEL BUTTON
WHEN-BUTTON-PRESSED TRIGGER
BEGIN
EXIT_FORM(no_validate);
END;
PROGRAM UNIT Log_on
PROCEDURE Log_on IS
BEGIN
  :global.quit := 'TRUE';
  exit_form(no_validate);
END;
if this didn't solve ur problem pls tell us what error did u get pls tell us the details...!
Hope this helps...
Regards,
Abdetu...

Similar Messages

  • FRM-92101 error when changing the passwd when running Forms 10g application

    Hi Friends,
    Issue is with: Getting FRM-92101: There was a failure in the Forms Server during startup. This could happen due to invalid configuration. Please look into the web-server log file for details.
    Steps i followed.
    1. Start th OC4J instance of the oracle 10g.
    2. Login with one user/passward and opens Forms 10g application
    3. By Using One Form, changed the passward of the current user.
    4. then closed the Form and then try to close the Forms Application.At this stage i got an error message FRM-92101: There was a failure in the Forms Server during startup. This could happen due to invalid configuration. Please look into the web-server log file for details.
    I verified the log files but i did not get any relevent information
    Please help in this scenario.
    Regards
    Madhava Rayalu

    Could you paste the complete error message?
    Does this works fine when you change the username /passwd for other users ?
    Rajesh Alex

  • Build User Maintainable Formulae in Forms 10g

    Dear Experts,
    Can anyone suggest me how to build User Maintainable Formulae in Forms 10g and use the same for Calculations.
    There are about 25-30 Formulae in the Application I am building which keeps on changing in every 6 months time. I want to build the application where user can maintain these changes without touching the source code. I am giving the sample formula hereunder:
    P = ((T X (1-S)) + (E X S)) + Q -Y + D -I +M -A                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hello,
    Maybe you could inspire from this discussion: String arithmatics
    Francois

  • How to find the cause ofan error at runtime in forms (10g)

    hi
    can u please tell me how to find the cause ofan error at runtime.
    in forms 6i, the shortcut key is shift+f1
    i needthe shotcut key in 10g forms.
    thanx

    or just look in you menu help, -- last error or you can find the list of shortcut keys there ...
    \Erwin

  • Changing boilerplate at runtime in reports 10g

    Hi,
    Is there any way to change the column heading at runtime? Can any body help me?
    Thanks

    I want to change the boiler plate text based on the record number. For the first record I want to display one boiler text,second record another one.
    For example, I have the records like this
    Deptno Empno
    10 111
    2222
    20 3333
    44444
    I want display for first record as empno1, for second record as empno2 and so on...., It has to reset for each department.
    How can I implement this?
    Can you please help me?
    Thanks

  • Item Background Color changes when placed in production (Forms 10g)

    Hello All,
    I have searched the forum on this topic, but have not been successful in finding a topic/solution for multi-line items that need to render a different color than the rest.
    I have used set_item_instance_property (and set_item_property) as well as using a VA to resolve this issue to no avail.
    When I view the form in the browser - initially in query-mode, I see the color that I have set for the item. Once the query is fetched and I am in non-query mode (display), the items background color is replaced to the standard color (off yellow) for non-editable fields.
    I have taken all of the subclasses off, used the item property from the pallette as well as manually programmed within a trigger and cannot get this item to stay the color that I have set.
    Can anyone help me get this working?

    Are you using the 0 to 100 rgb color assignments you see in the Forms Builder color palette? If so, that is your problem. At run time, you have to convert the color numbers to 0 to 255 numbers. Just multiply each of the three parts by 2.55
    Or maybe there is come code running elsewhere in your form that is setting the color after your code is run.
    Search your form for background_color.

  • Forms 10g Design Rich User Interface

    Dear All,
    i would link to design rich user interface in forms 10g.
    for example : the button shape is circle , not only
    rectangle.
    Is it possible to do that in forms 10g or import some java object from third party tools.
    best regards
    borisys

    Borisys,
    the concept of Pluggable Java Comnponents (PJC) allows you that. PJC only change the UI of a component without affecting its functionality.
    The Forms demos that are available on otn.oracle.com/products/forms contain enhanced buttons in teh form of mouse over effects.
    Frank

  • SBO crashes on changing user defined field setting for a form

    Hi,
    when i try to change the user defined field settings(Tools->User-Defined Fields->Settings) for a form, say Sales order form, on clicking on OK button SBO crashes displaying runtime error messagebox.
    This happens only when my addon is running.
    Anyone encounter this behavior?
    Thanks,
    Satish.

    Hi Barend,
    I have put in the filters.The form 38(user-defined fields settings form) is not included in the filters.So it should not get any events. I get the following error
    Microsoft Visual C++ Runtime Library
    Runtime Error!
    Program ..m Files\SAP Manage\SAP Business One\SAP Business One.exe
    This application has requested the runtime to terminate it in an unusual way.Please contact the application's support team for more information.
    Thanks,
    Satish.

  • HELP! Forms 10g Windows Runtime Problem!!!

    After I installed Forms 10g windows, I modified the configuration according to my Forms 9i configuration.
    But when I open a form and run it, the runtime URL only refer to a temporary htm file which jumps to:
    http://localhost:8890/forms90/f90servlet
    I have to enter the query strings to run the form, like
    http://localhost:8890/forms90/f90servlet?form=C:\webutil\forms\CIMS10g.fmx&userid=OSSCHINA/OSSCHINA@orcl&buffer_records=NO&debug_messages=NO&array=YES&query_only=NO&quiet=NO&RENDER=YES
    So how can I make the proper configuration to auto-generate the correct query strings when running the form, just like what it is in Forms 9i?

    Suicheng,
    which configuration did you change and what do you mean by "when I open a form and run it".
    Do you mean the preferences settings in the Forms builder ? There is a button to reset the URL used by the Forms builder to bring it back to the deault setting
    Frank

  • Change background in forms 10g?

    When we compile and run the form in forms 10g output is displayed. Can we change background? Can anybody help me to change the background in forms 10g?

    see you /forms/server/forms.conf file that contains the virtual directories declared
    # Virtual path mapping for Forms Java jar and class files (codebase)
    AliasMatch ^/forms90/java/(..*) "D:\Oracle9i/forms90/java/$1"
    # Virtual path for JInitiator downloadable executable and download page
    AliasMatch ^/forms90/jinitiator/(..*) "D:\Oracle9i/jinit/$1"
    # Virtual path for runform.htm (used to run a form for testing purposes)
    AliasMatch ^/forms90/html/(..*) "D:\Oracle9i/tools/web90/html/$1"
    # Virtual Path form images
    AliasMatch ^/forms90/icons/(..*) "D:\Oracle9i/CGENF61\ADMIN\ICONS\PC/$1"
    ...you can create as many virtual directories as you want.
    Francois

  • Problem in changing HOTKEYS using fmrweb.res in Forms 10G

    Hi
    i am working on ORACLE FORMS 10g.In our requirement the Hotkey for Save Button is F9 , Add Button is F8, Exit is F5.I changed these values in the fmrweb.res but F9 Key for Save is not working.I used the command Save for F9 then later changed it to commit..but still no change..could someone throw some light on this issue?

    since it was sunday i couldnt check in office yesterday.its the single file i have got fmrweb.res .it s english installation and some other keys which i have changed do work for me.for example for exit i needed F4 hotkey so i changed it in this file and it works good.its only for save-F9 and find F4 it does not work.it would be of great help if someone could post that fmrweb.res file.

  • How to make the oracle forms 10g applet or runtime the size of 1024x768?

    Hi,
    Can anyone tell me
    How to make the oracle forms 10g applet or runtime the size of 1024x768?
    Thanks in advans..

    Please post your question in Forms Topic
    Kamran Agayev A. (10g OCP)
    http://kamranagayev.wordpress.com
    [Step by Step install Oracle on Linux and Automate the installation using Shell Script |http://kamranagayev.wordpress.com/2009/05/01/step-by-step-installing-oracle-database-10g-release-2-on-linux-centos-and-automate-the-installation-using-linux-shell-script/]

  • Runtime Compatibility Mode in Forms 10g

    Dear All
    I would like to achieve the Runtime Compatibility Mode in Forms 10g, is there any work around to do this. Kindly let me know. This is little bit argent
    Thanks in advance
    by
    Thangaraj

    Thank for your reply Bernd
    I need to achieve the same functionaliy in 6i, the scenario is like this,
    i have a madatory item and i will set the runtime compatibility mode 4.5 then at runtime i can able to leave the filed empty if i press the SHIFT+TAB key, if i press tab or enter key alone the error message should be displayed "Field must be entered" , this is functionality is working fine in 6i forms if you set the Runtime Compatibility Mode is 4.5.
    but this is not heppening in 10g forms, because we have the same source in 6i whenever there is a need we will compile it with 10g template and give to the customer, now its not working so its creating big trouble.
    i have seen something in meta link but that is not feesible. pls do the need ful
    Thanks
    Thangaraj

  • Invoking runtime parameter form from Oracle forms 10g.

    Hi all,
    I am using Oracle 10g DS.
    I have cretaed a form containing a button. when i pressed that button
    the rdf has to be called and runtime parameter form has to be invoked. In that i will give parameters. In that button the path is already is there.
    so the problem is I am unable to invoke the runtime parameter form of Reports builder when i pressed the button.
    can anybody helpout....
    thanks in adv.
    Venkat.

    copy the question to the report forum as well :
    Reports

  • Strange runtime result on forms 10g

    Hi,
    I am using forms 10G. Db is 10G.
    When I run the simple Scott’s emp table
    It runs on internet explorer and instead of giving emp table information it shown something like that:
    <html> <head> ORACLE FORMS.</head>
    <body onload="document.pform.submit();" >
    <form name="pform" action="http://lalo:8889/forms90/f90servlet" method="POST">
    <input type="hidden" name="form" value="I:\test\emp.fmx">
    <input type="hidden" name="userid" value="SCOTT/TIGER@orcl">
    <input type="hidden" name="obr" value="yes">
    <input type="hidden" name="array" value="YES">
    </form> </body></html>
    what is this?
    How should we get the forms simple screen on runtime?
    Where should we get entry so on it runs independently?
    Though is running well on 6i.
    Juma

    This is a duplicate of strange runtime result on forms 10g
    See my response to your original thread.

Maybe you are looking for

  • Error when trying to read the SOAP Response

    Hai, iam trying to access the web service of DUBAI international Airport GetFlightSchedulebyDateRange at http://dca.gov.ae/WebServices/Flights This is my program package MyClient3; import java.io.FileOutputStream; import java.net.URL; import java.uti

  • Could not load file or assembly 'ASSEMBLY INFO' or one of its dependencies. The system cannot find the file specified.

    We have a custom application that was developed for SP 2010. We converted it to SP 2013 but  we have the problem that although the assembly has strong name, SP2013 cannot find it in the GAC. As you know after version 4.0 of .Net Framework. Strong Ass

  • EPM11.1.1.1 Data Prep Editor Can't Display non-Unicode text

    LANG=zh_CN.GBK ESSLANG=SimplifiedChinese_China.MS936@Binary I open data file, Chinese can not be displayed , but I can mannuly input Chinese. Display unicode text is OK, cannot load, so I change cube to unicode mode, Load data is OK. but DIM(informat

  • Cant's uninstall Quicktime

    Hello- I just recently got my first iPod, and after installing iTunes, I couldn't open it. It told me that iTunes had encountered a problem, then prompted me to send or not send an error report to Microsoft. After not doing it several times, I did se

  • Client deletion failed

    Hi All, I have started deleting a client using scc5. I have done it in dialog mode. After 3 hours it throwed me an error saying that client deletion is failed and restart is required. So, I logged off from the client and tried to login. I could able