Use formsweb.cfg to pre-populate database field on login screen?

Hello,
Is it possible to configure formsweb.cfg to pre-populate the 'Database' field on the Oracle forms login screen? I still want users to be able to overwrite what's entered there but just have it populated with something by default.
Thanks,
Andrew
Edited by: Andrew V on Nov 16, 2011 12:33 PM

Hi,
In Forms 10g you can set the userid parameter to something like "@DATABASEID LOGON_SCREEN=YES", where databaseid is your database server.
In Forms 11g this doesn't work so well, but I got round this by doing the following in our menu form, if you haven't got a single menu form then you may need to do this in all your forms where the user isn't already logged on when the form opens.
First off you need to set the userid parameter to something like "@DATABASEID".
Next an on-logon trigger is required in your menu or first form, I used the following:
on-logon trigger
DECLARE
cn VARCHAR2(80);
BEGIN
** Get the connection info
** If userid paramater in formsweb.cfg is set to '@<database>' or
** '@<database> login_screen=true' then this will put <database> into database field
** in default logon form
cn := Get_application_property(CONNECT_STRING);
if instr(cn,' ') > 0
then
cn := substr(cn,1,instr(cn,' ')-1);
end if;
LOGON(null,'@'||cn,TRUE);
if form_success
then :global.login_success := 'TRUE';
end if;
END;
Also, to deal with the situation where a user decides to click cancel in the logon screen, you need to put the following at the start of your wnfi trigger.
when-new-forms-instance trigger
default_value('FALSE','global.login_success');
if :global.login_success != 'TRUE'
then
erase('global.login_success');
exit_form;
end if;
erase('global.login_success');
Edited by: Ady Keeling on Nov 16, 2011 2:38 PM

Similar Messages

  • Removing or automatic fill the database field at login when using TWO_TASK

    Couple of questions when using TWO_TASK on HP-UX
    1. Is it possible to alter the login window, by removing the database field, as it is not needed anymore?
    2. Is it possible to automatically fill the login window with the required database connect string?

    Hello,
    Are you sure this question is relative to the Oracle Forms product ?
    Francois

  • Mapping different forms to different pagetitle by using formsweb.cfg

    Is it possible to show the browser title as "FormA Title" when the formA.fmx is launched and show the browser title as "FormB Title" when formB.fmx is lauched etc just by setting the pagetitle of formsweb.cfg file ?
    Thanks in advance !!

    I believe that the answer to your question can find in the post
    Changing the Window title
    by James Killeen
    Regards

  • After system recovery, no password field in login screen

    Hello! I want to ask something. Well, i made a big mistake that cause dekstop crashing. And then i try system recovery, it doesn't work. Its also make my password field and account missing in login screen. How to login? And how to start a safe mode? Because, if i press esc and then f11, its didn't work much time. Please help me. Still got a bunch of problem about this PC to solve.

    Hi @Okariza_Koala 
    Welcome to the HP Forums!
    It is a great  place to find answers and suggestions!
    For you to have the best experience in the HP forum I would like to direct your attention to the HP Forums Guide Learn How to Post and More
    I understand that you made an error that caused your desktop to crash.  You tried to do a recovery but it did not work.
    You are missing your account login screen to sign in with a password.
    When I checked the specifications for your notebook I see it came with Free Dos. HP Pavilion Sleekbook 14-b009au Product Specifications.
    Is this correct or was Windows 8 installed when you purchased it?
    If that is correct it will not have a recovery manager to access.  If you installed from a Windows disk you will need to boot to the disk and do Windows repair.
    Here is are two links from  Windows Microsoft  that should help you.
    Start your computer in safe mode.
    How to refresh, reset, or restore your PC .
    Good Luck!
    If the notebook did come with Windows 8 installed did you create recovery CD/DVDS when you first setup the notebook?
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Pre populate a field to use later as a filter for [ME]?

    I've got a list containing data records which apply to different people.   I'd like to create a filter that compares [ME] with a field in the list so when each user logs in, they'll only see the records assigned to them.   What do i need to put
    in the field to accomplish this?

    Hi, 
    If you want to use function [ME] to filter a column in a custom list view, that column must be a "Person or Group" type column.
    If this column value is dynamically assigned to specified people, we need to type and resolve the people manually,
    If this column value is equal to "Created By" or "Modified By" value, we can create a workflow to auto update the custom this column value as Created by or Modified by value.
    Then we can filter this column which value equals to [ME] in a custom list view, then create a custom web page and add this list view web part with filtered by [ME] in this web page, users should see the record items assigned to them in this page.
    Thanks,
    Daniel Yang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected] 
    Daniel Yang
    TechNet Community Support

  • How to pre-populate a field based on a URL parameter

    I have a lists of products (not report, standard layout) for which I want to create a SR for each product. So I've created a Web Link (which appear in each product row) to create the SR, but I want to pass the product Id to the SR screen so the user doesn't have to fill out the product field. Is this possible?
    Thank you
    Alvaro

    This is definitely possible. I have a couple of documents that can help you with this. Reach out to me via email and I'll send them to you.
    Thanks,
    Thom

  • Pre-populate Department Fields

    I have created an EPT that is tied to a specific department and have custom fields for this department. When I create the new EPT for my department, why is it that I need to choose the department in the Project Details page in order for it to display the
    custom fields I created for my department? I would have assumed that the EPT department will be preset, so I wouldn't have to choose the Project Department to display the custom fields. 
    Does anyone know if there is a way to have the EPT's department roll over to the Project Department field when creating the new Project?
    Thanks.

    Hi Brian,
    I'm not sure to get your point. If you have a department drop-down list in one of your PDPs, this is because you configured it as is. Meaning that choosing a specific department will display/hide custom fields associated/not associated with the selected
    department.
    Then EPTs associated with deparments will trigger which EPTs the users will see in the project cetner / new button based on their own department.
    If you configured correctly departement versus EPT, custom fields and resources, users will only see EPT associated to their departments with the corresponding custom fields.
    See refrences below:
    http://www.applepark.co.uk/understanding-departments-in-project-server-2010-part-1/
    http://ntrajkovski.com/2012/06/06/departments-in-ms-project-server-2010/
    http://blogs.technet.com/b/projectadministration/archive/2010/03/17/departmental-custom-fields.aspx
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • I downloaded the new os7 on my Ipad mini. Now in order to use the ipad I need to use a passcode. I cannot get pass the login screen and I never set up my ipad to use a passcode. What can I do?

    I downloaded the new os7 on my ipad mini. Now in order to use the Ipad, I need to enter a passcode. I cannot get pass this screen. I did
    not set it up to use a passcode. What can I do? I am not too computer savy.

    I have the same problem. I upgraded to iOS7, entered my usual passcode when prompted in setup, and when I tried to access my iPad after installation was finished it denied my passcode. I can't connect to any internet to erase it or anything because the new iOS hasn't yet been configured to a wifi network, so I can't backup from anything either.
    When I connect the iPad to iTunes, it tells me that Find My iPad must be disabled on my iPad before backup or restore can continue - and I can't access anything beyond the lock screen of my iPad at all because it refuses to accept my passcode, so I can't get to Find My iPad.

  • Pre populate field with integer numbers?

    Hi,
    I want to pre-populate my field which is integer type with numbers in a sequantial order like 101,102,103,104...
    How can i do this with 10gr2?
    Regards.

    Actually i have two tables.
    First table has ID1, NAME1, REF1 columns.
    Second table has ID2, NAME2, REF2 columns.
    ID1 and ID2 is autonumbered id columns. NAME and REF columns are emtpy columns. I populated NAME1 and NAME2 manually entering data from my project.
    Now i want to relate each table's rows one by one, i.e., one to one cardinality. Therefore, i have to populate first table's REF1 column with sequantial numbers, and then manually enter corresponding number to table two's REF2 columns.
    I don't want to use ID columns, because i insert data these tables at different time intervals.
    Hence, when i query TABLE1's NAME1 data, i will see corresponding data in TABLE2's NAME2 column via this relationship.

  • Using an event in table maintenance view to populate a field

    I have a table maintenance view, and I would like to populate one field of the table with derived data. I am trying to do this by coding a routine for one of the events, but so far no luck. I have been able to chege the data in the TOTAL table, but still it does not populate the field on the screen.
    Note this is not for one row as it is entered, but I want all rows of the table displayed to show this field with derived data.
    So the question is: what is the correct event to use, and what is the correct internal table to update? Can I make changes to EXTRACT or TOTAL to do this?
    Kind Regards,
    Tony.

    Hi Rob,
    Sorry for being lazy; I'll close this and off and search :-}
    BR,
    Tony.

  • Combo box with multiple variables pre populating multiple fields and max value validation script help

    I am creating a pdf form that will be used as a calculator, and my javascript knowledge is pretty rudimentary. I can do the simple things, some of what I need to do is over my head.
    1. I believe I need to use a combo box to pre populate certain fields. I have 13 variables in the dropdown to choose from, and whatever the client chooses will pre populate three other fields (and each of the 13 variables will populate those three fields differently). I'm not exactly sure how to go about doing this. Is it custom keystroke script or does it require a document script? Also, I'm guessing that whatever script will be a series of if/then statements, correct?
    2. Once all the fields have been populated (be it pre population or filled in by the customer), I need to calculate the answer which is not my main problem—I already have the proper calculations in place and they work. The problem is that the answer has a maximum value even if the actual value goes over that max number. So, the actual answer is 14 but the max value can only be 12. How do I get the calculation to replace that actual number (14) with the max number (12)? Is that in the validation tab or should that go elsewhere?
    I feel like I know just enough to be dangerous but not terribly effective. Any help is appreciated.  
    Thanks!

    1. There is a tutorial on this here:
    http://acrobatusers.com/tutorials/change_another_field
    2. To set the maximum value to 12, try this as the custom calculation script for the field:
    //Custom calculation script
    //Get value of text field
    var a = this.getField("Text1").value;
    //If it is > 12, then make it 12
    if (a > 12){
    a=12
    event.value = a
    You need to replace "Text1" with the name of the field in your form.

  • Passing url parameter values to a non database field

    Hi,
    How do I pass values from the url to a non database field ?
    The following works for a database field:
    http://host:7777/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1892460035&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=deptno&p_arg_values=20
    but if I use the same for a non database field item20 it doesn't do anything.
    http://host:7777/pls/portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1892460035&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=item20&p_arg_values=2003
    Thanks,
    Sonal.

    Hi,
    Are you trying to query on this field? It wont work because only database fields can be queried on.
    Thanks,
    Sharmila

  • How to pre-populate a text form?

    I just created a text form and would like to have it
    pre-populated with the number 1. can someone help me with
    this?

    You want to pre-populate a field in that form with the number
    '1'?
    <input type="text" name="number" value="1">
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "SilverRoad" <[email protected]> wrote in
    message
    news:f7lr8j$9ch$[email protected]..
    >I just created a text form and would like to have it
    pre-populated with the
    >number 1. can someone help me with this?

  • Pre-populate Portal sign-on screen

    Is there a way to pre-populate the portal sign-on screen with user-id and password ? We are in the process of migrating users to SAP portal, and are looking at re-directing (auto login if possible (or) pre-populate login fields at the least) them to the new site when they access the old site.
    I reviewed the HTMl source of the portal login page, but did not see a way to pass parameters in the URL.
    Thanks in advance for any suggestion !

    Hi Srikanth,
    You can send your user name & password to the portal as url parameters like:
    http://<server>:port/irj/portal?j_user=your_user_name& j_password=your_password
    Hope this helps,
    Best Regards,
    Nibu.

  • How can i post the fields in the screen by selecting a record

    Hi,
      I have a problem in dialog programming.
      I need to populate the fields in the screen by selecting a single record.
      For example,
        Screen consists of 'CARRID, CONNID,FLDATE... fields.
        By pressing F4 in CARRID field it will display the contents from database table and display the records. If i select the record LH 0400 ... record then automatically the connid field should fill with the contents of the record i.e., 0400 and similarly the remaining fields.
       How can i do this in dialog programming?
       I tried with F4IF_INT_table_.. function module. There is a table parameter DYNmapping. But dont know how to use it? Can any body explain me how to use it?
       Thanks in advance..
       Suvan

    Hi Vinod,
      Thanks for your reply. I solved my problem. It is working with the table parameter 'DYNPFLD_MAPPING' in the function module 'F4IF_INT_TABLE_VALUE_REQUEST'.
      With your logic we can't decide which record is selected. Because there can be multiple records for a single CARRID.
      My question is how to post the entire record into the screen fields at a time? It is possible with the parameter I specified inthe above said function module.
      With dictionary reference it will fetch the entire entries from the Check table.
      Thanks again for your co-operation.
      Suvan.<b></b>

Maybe you are looking for