How to fill out the USER name in a [RESOLVED] text field

Hi all

Forms 10g (10.1.2.0.2), Windows XP
In my form, I have 2 blocks.
1 block with a single element, where we enter a value and press on enter (this place you block2 and run the query).
Block 2 (tabular) will get the records. This block2 have now 3 columns (caseid, userid, date).

Now when I insert a new record, I just need to get the caseid only. And username and date must be filled in automatically.
I am able to fill in the date by setting the property Initial Value * $$DATETIME$ $* for the column.
And I tried many ways to fill the username in the userid column without success.

I am tired of something like that
In *When-New-Item-Instance*

if :System.Cursor_Item is null then
     :BLOCK2.userid := Get_Application_Property(USERNAME);
else
     null;
end if;
/*In this case, I can navigate to to the last recrord w/o any changes in the fetced records
 and while inserting the new record, USERNAME doesn't populate.*/
In *When-New-Record-Instance*

declare
     v_dummy varchar2(15) := null;
begin
     v_dummy := nvl(:system.cursor_value, null);
     Copy(to_char(v_dummy), :System.Cursor_Item);
     if :System.Cursor_Item is null then
          Copy(null, :System.Cursor_Item);
          :BLOCK2.userid := Get_Application_Property(USERNAME);
     else
          null;
     end if;
end;
/* Nothing populates into the userid item while inserting new record */
Any help please...

Use one

:BLOCK2.userid:=GET_APPLICATION_PROPERTY(USERNAME);

or

:BLOCK2.userid:=USER;

in a WHEN-CREATE-RECORD-trigger.

Tags: Oracle Development

Similar Questions

  • How to fill out the "to:" line with a variable email address?

    I'm new to coding and am not sure how to ask my question. I have a link in an 'Email' symbol that I would like to have the window open to a 'mailto', but there are several instances of that symbol on the timeline, each using a different email address. If the [symbol]. Email.Click code reads as follows:

    Window.Open ('mailto:'+ sym.getVariable = ("emailWindow"), "_self")

    and the line in the Stage.creationComplete code that is supposed to call the variable code reads:

    sym.getSymbol("Details_David").$("Email").html ("[email protected]" "").setVariable("emailWindow","[email protected]");

    With this code, the browser opens a window of mailto, but the ' to: ' line readings, "indefinite".

    Either in the [symbol]. Email code. Click, I have:

    Window.Open('mailto:"emailWindow"',"_self")

    without the "emailWindow" as the variable name, the "to:" line to the mailto line reads, "emailWindow".

    How to fill out the "to:" line with a variable email address?

    Otherwise, it works better:

    1)

    replace

    sym.getSymbol("Details_David").$("Email").html ("[email protected]").setVariable("emailWindow", "mailto:[email protected]");

    with

    sym.getSymbol("Details_David").$("Email").html ("[email protected]");

  • How can I remove the user name and the image of Windows XP new Start Menu

    Two questions:

    1. How can I delete the user name and the image of Windows XP new start; and

    2. my computer keeps asking me to press the F1 key to start Windows.  How to skip this part?

    Thank you.

    Hello

    The image of user account can be removed by disabling the Welcome screen. Or, by opting for the classic Windows theme. Follow the method described in this article, if you want to remove the user name and the picture in the Start Menu, without disabling the Welcome screen and Windows XP theme.

    For those who want to delete the user name and the image of user account from the Start Menu, in order to have a blue white Panel at the top, try this:

    Registry warning
    Important: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    How to back up and restore the registry in Windows
    http://support.Microsoft.com/kb/322756/

    Step 1:

    a. start Windows Explorer and go to this folder:
     
    C:\Documents and Settings\All Users\Application Data\Microsoft account images

    b. in this folder, rename the BMP file that corresponds to your user account.
     
    (For example, if your user name is Robert, rename Robert.bmp to old_Robert.bmp)

    c. then rename the following folder:

    C:\Documents and Settings\All Users\Application Data\Microsoft account Pictures\Default pictures
     
    to something else, for example,.
     
    C:\Documents and Settings\All Users\Application Data\Microsoft account Pictures\No_Default images.

    Step 2:
     
    To remove the user name, follow these steps

    a. Click Start, click "RUN" and type "regedit.exe" and navigate to this key:
     
    HKEY_CURRENT_USER-Software-Windows Microsoft\------CurrentVersion-policies-Explorer

    b. in the right pane, the value NoUserNameInStartMenu-value data 1.

    c. close Regedit.exe and restart Windows.

    You'll find yourself with a blue area at the top of the Start Menu.

    Regarding the pressing 'F1' to start Windows, you have made no changes or was there a system crash after which the problem started?

    You may need to change the boot sequence in the BIOS to the default settings. I recommend you contact your PC vendor for this.

    Warning of the BIOS:
    BIOS change / semiconductor (CMOS) to complementary metal oxide settings can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the configuration of the BIOS/CMOS settings can be solved. Changes to settings are at your own risk.

  • How to fill out the customer type when you submit a form?

    How to fill out the customer type when you submit a form?

    You can't do right now in British Colombia by means of forms.

  • How can I get the user name of the current user? Not the name of the user, but the user name is connected to.

    Anyone know how I can get the username of the current user? Not the name of the user, but the user name is connected to.

    Thank you!

    Only two variables that Captivate allows to work with are cpQuizInfoStudentName and cpQuizInfoStudentID, but the latter is only really designed to be used for the internal information server, not a typical SCORM LMS solution.

    Sounds to me like you may need to get hands on with the services of a JavaScript programmer.

  • How to fill out the empty fields of a document downloaded from my email?

    I have the filliing problews in the blank spaces where my personal information is required.  It seems that I can read and save the document, do not fill the required spaces.  I need help

    Hi Atiimkwabena,

    I guess you are trying to fill out the PDF using Adobe Reader. (Correct me if I'm wrong)

    If so, this form can not be Reader rights enabled. Adobe Reader is a single PDF reading software is only meant to read and save a blank copy of the PDF. If you want to change something in the PDF file, then the creator has enable user rights (commonly called player to extend rights) so that you can save the completed PDF file. This can be done by Adobe Acrobat.

    I would ask you to kindly contact the author of the PDF file to allow the user rights and send it again.

    I hope this helps.

    Kind regards

    ~ Dominique

  • How can I change the user name and password

    I successfully download the FVO and install the virtual appliance. It works very well with my blackberry. I can connect to individual servers or virtual Center.

    However I don't know how to change the user name and password.

    I would also like to know how it works?

    We have a BES server on our network and no configuration is necessary. I just turned on the device Mobile Access of vCenter and entered the ip address of my virtual Center and bingo, I can access through my blackberry.

    If you try to change the Appliance virtual username and password, you can use the standard linux commands (adduser, passwd, chgrp, chown, etc.,)

    The default user name and password so that the robot is root/vmware"."

  • I gave a comuter the person who owned it died. How can I change the user name and password?

    A few months ago, I gave a comuter the person who owned it died. The window indicates Micrsoft Window XP Professional-HP. My problem is that I do not have access on behalf of users and password. What should I do?

    Hello

    Many on this forum suggests that when you "inherit" a PC, you should do a clean install of Windows to delete the unwanted "baggage" that the previous owner has left behind. For example (but not limited to) viruses and criminal and illegal downloads. Such a procedure will reset all the passwords anyway. The PC may have a factory reset mechanism still intact. Visit the manufacturer website for more information, or we do know the number of brand, range and model of your PC for assistance.

    If you are using XP Home Edition, the built-in Administrator account probably doesn't have a defined password. You can start in safe mode, where this account will be selectable when connecting. It allows to connect and change the password of any other connection.

    To start in safe mode, keep hitting F8 twice a second after turning on the PC until you get the start menu where safe mode is selectable by the up/down arrow keys, and then press ENTER.

    If you are using XP Professional, try to connect using the built-in Administrator account. You don't need to do it in safe mode (although you can if you wish). If your normal login screen is a display of the user symbol and hit ctrl-alt-del twice to get to login to text entry. Type administrator as the user name and try a blank password.

    See also http://support.microsoft.com/kb/321305

    Other than the foregoing, this forum has a policy of unknown passwords

    http://support.Microsoft.com/kb/189126

    Tricky

  • How can I get the user name (the user who has registered their own personalized interactive report) in the application

    Hello

    I want to get the user name. Who saved their own custom application of the Apex report.

    If someone could please help to get user names.

    Thanks in advance.

    Kind regards

    Cyril S

    A possible source: see in the following metadata table: apex_application_page_Ir_rpt

    You will need the id of the application, the page id and the id of the report to the information, which is located in the application_user column...

    Thank you

    Tony Miller
    Software LuvMuffin
    Ruckersville, WILL

  • How to fill out the name of the file to the file upload

    Hi team,

    I'm trying to fill in the name of the file that is selected in the Explorer of files to other filed(text field) in the same region (dynamically when the file is selected). Is there a way to do this?

    Thank you

    Jyo

    Hi, Jyo

    Create a dynamic Action with the following parameters:

    Event: change

    Selection type: point

    Article (s):

    By this DA you can set the value of another element in your page. File name, in that you can get

    • using jQuery: dittos var = $("#P1_FILE_BROWSE").val)
    • without jQuery: dittos var = document.getElementById("P1_FILE_BROWSE");
  • How to fill out the story in entity object columns when creating a new line

    Hello

    I use Jdeveloper 12.1.3 to develop an ADF Application.

    My database table that has 4 columns of audit.

    CREATED_BY

    LAST_UPDATED_BY

    I added 2 new types story available under Tools-> Preferences->-> Types of history ADF business components.

    11. created by username

    12 modified by user name

    Where are these values be saved? which file will have these details of the story newly added columns.

    Note:-I'm trying to follow the blog by Jobinesh http://www.jobinesh.com/2011/02/creating-custom-history-types.html

    Also, in the method of getHistoryContextForAttribute(AttributeDefImpl attr) of CustomEntityImpl, how I'll call columns of type story newly created?

    Also, how can I distinguish if this event is create or update?

    See you soon

    AJ

    Hi AJ,.

    the entry is stored in the %JDEV_USER_HOME%\o.BC4J\jbo.properties file (in most cases %JDEV_USER_HOME%=%APPDATA%\Roaming\JDeveloper\system[YOUR JDEV VERSION] on windows machines)

    Greetings,

    Markus

  • How to fill out the table foreign key to the primary key form

    Hi all

    I'm stuck in this problem for 3 days, and I'm about to research and implement solutions on the internet.

    I have two tables

    create table prim (a number primary key, b varchar2 (100));

    create table CHILD (a number references (a) prim, varchar2 (100)) c;

    I created a page for PRIM table.

    = page name form on PRIM2

    I have manually two columns for the CHILD table to know

    P26_A_1 (for the primary key in the CHILD table)

    P26_C (for the column in the CHILD Table c)

    now when the user clicks on the button CREATE, a row must be inserted into the child table.

    I want to assign the P26_A to P26_A_1 during the validation process, so that a line must be inserted into the PRIM table as well as in the CHILD table.

    How to do this?

    I downloaded my application page in https://apex.oracle.com

    my workspace identifiers are inferior to

    name of the workspace = IMBERT

    username = demo

    password = demo

    kindly guide me.

    Thank you.

    Hello

    I created a new page (page 30) similar to your page and added the insertion of the child. It just check the page and code. It works now, when you insert the prim file is triggered a second trial which inserts the child record manually.

    On page 26 it was some sort of mistake, was easier to create a new as it was almost a standard form.

    Concerning

    Bottom

  • Dreamweaver connection "How can I get the user name to the other page?

    im a beginner in Dreamweaver CS4 and I'm learning to just watch the tutorial videos...

    I have a big problem...

    ADWCS4 is easy to make a login form...


    for these tutorials I watch I have not meet how to get the user to another page name which connect...

    I'm using PHP

    hope you can answer my question

    http://forums.Adobe.com/thread/417437

  • How do you manage the user name and password for wss_username_token_over_ssl_client_policy?

    I invoke PurchaseOrderService, Version 2, as part of the Rel9. I use wss_username_token_over_ssl_client_policy security policy.

    How do you manage the Username and the password?

    Here is a code snippet:

           SecurityPolicyFeature[] securityFeature =
                new SecurityPolicyFeature[] { new SecurityPolicyFeature("oracle/wss_username_token_over_ssl_client_policy") };
    
            purchaseOrderService_Service = new PurchaseOrderService_Service();
    
            PurchaseOrderService purchaseOrderService =
                purchaseOrderService_Service.getPurchaseOrderServiceSoapHttpPort(securityFeature);
    
            WSBindingProvider wsbp = (WSBindingProvider)purchaseOrderService;
            wsbp.getRequestContext().put(WSBindingProvider.ENDPOINT_ADDRESS_PROPERTY,
                                         "https://prc-XXXXXXXX.oracleoutsourcing.com/prcPoEditDocumentOrder/PurchaseOrderServiceV2");
            wsbp.getRequestContext().put(WSBindingProvider.USERNAME_PROPERTY, "myUsername");
            wsbp.getRequestContext().put(WSBindingProvider.PASSWORD_PROPERTY, "myPassword");
    

    This doesn't seem to be a very safe way to manage the usernames and passwords.

    What is best practice?

    Thank you

    Arie

    You must use the store of credentials, for more details, refer to:

    --

    Jani Rautiainen

    Relationship with the developers of Applications in fusion

    https://blogs.Oracle.com/fadevrel/

  • How to fill out the list of dynamic measurements

    Hello

    I create a dynamic action on a region by using a select list (item) (lov on table A).

    now the problem is that if the value in the selection list is present in the table B then must trigger the action.

    can someone tell me how to fill the column of values as the values in table B.

    I don't want to set the values manually.

    Thank you
    Little Foot

  • You can create a hidden page element that acts as an indicator of the condition "exists."
  • Create a D.A. say 'Set Hidden Page Item"that fires on the element of change o selection list, which is of type 'set Value' and uses a function body PLSQL to set the hidden page (the affected item) item, choose the item of list selection in the field 'referred to submit page '.
    Now the PLSQL block, can return 1/0 'TRUE' or 'FALSE' or 'Y' / ' not etc. Depending on whether the record exists in the other table (or whatever condition you have)

    Now when the selection list is changed, the hidden element would be set correctly by using this dynamic Action.

    So, to check if the element exists, we can use the value of the element of hidden after that page.

    You can do this either as another action True under the dynamic Action of "Set Hidden Page Item" itself (after the action SetValue True) and added a condition using the value of the hidden element
    or add another dynamic Action, fired when the hidden item is changed and when the value of the hidden element corresponds with that of your conidtion.

    Hope that I was clear enough.

Maybe you are looking for