How to give a value to a variable that is defined by the user for the use in my statement

Hai All

I declared a variable

declare
In_time varchar2 (25);
out_time varchar2 (25);


then I wrote a so other logic and this is my encoding


Start
go_block ('TEST_SRI');
PREMIER_ENREGISTREMENT;
LOOP

If: bartime between 0145 and then 0630
Update dail_att set = outtime: bartime where barcode =: bar code
and ATTEND_DATE =: BARDATE-1 and in_time is set to null and out_time is not null;


elsif: bartime between 0630 and 0900 or: bartime between 1130 and 1230 or
: bartime between 1700 and 1800 and in_time is null then
insert into dail_att(barcode,intime,attend_date)
values(:Barcode,:Bartime,:bardate);

elsif: bartime > 1645 and t_in is not null and out_time is null then
Update dail_att set = outtime: bartime where barcode =: bar code
and ATTEND_DATE =: BARDATE and respondent are not null and outtime has the value null.

I need to know how can I give the values of these variables if I use the variable in my statement
If it is possible by using the slider Pls tell me the steps to solve my problem


and while I will carry out my loop it get only half of my files what is wrong.

Concerning

Srikkanth.M

Your question seems to relate to Oracle Forms, which has its own forum of OTN.

But as it comes to PL/SQL I will make a comment... Unfortunately this comment is that in reading your post, I don't know what you're asking.

You wrote: "I need to know how can I give the values of these variables if I use the variable in my statement.

What variable? Why don't you use a duty with: = as you obviously already know how to do?

An example would be very useful.

PS: Always display product names and version numbers.

Tags: Database

Similar Questions

  • How to control the value of a variable that is shared at the beginning of the vi

    Hi all

    In short: How can I make sure the values of the variables shared at the start of a vi?

    I have two vi.

    One is a main vi where did I order a shared Boolean variable "run DAQ".

    The other is a vi with a while loop that "polls" for the shared variable "Execute DAQ", which is connected to a box Structure. If the case is false, it does nothing, if it is true is short some simple IO DAQ within a while loop.

    To be sure that at the beginning of the vi the variable 'Execute DAQ' shared value false (no matter what 'State' the shared variable was left in front of the vi began) I write a Boolean constant to this shared variable 'Execute DAQ' out of hand while loop.

    Now my question: how is it possible that the case structure can enter into the 'True' State, even when main vi is not executed and there is therefore no way of the shared variable can be written in. I know that shared variables are stored in memory, but that's why I write it to false at the beginning of the vi.

    Even when I read the first shared variable before you change it with a constant False the second instance of the shared variable that is wired to the case structure bed to True.
    It seems to me that the shared variables do not follow the 'right' of the dependence of LabView and are updated outside the normal flow of the vi.

    Thanks for your time and advise on this.

    JackT wrote:

    Someone knows another way around this?

    Yes.  Do not use them.

    If you not post on a network, use a normal Global Variable or use a queue, the user event, stating to send commands indicating loops for updating their values.

    If on a network, then I recommend the network stream to send commands/data back with updates.  I used shared variables, more I hate them.

  • How to get the value on a model that is defined in the java code in email

    Hello

    I created a custom code and send email as well to custom component. I can send emails using the method:

    InternetFunctions.sendMailTo (EmailID, EmailTemplate, subject, cxt);

    But my problem is that I have to get a value in the model of "EmailTemplate" which are defined from java code. but I don't know how to get the value.

    I will highlight in the java code by using this code: binder.putLocal ("ErrorApproveRejectMsg", massegeBody);

    I'm trying to enhance the model using the code below, but not able to get.

    1 < $exec getValue ("#active", "ErrorApproveRejectMsg") $ >

    2 < $exec getValue ("#active", ErrorApproveRejectMsg) $ >

    3 < getValue ("ErrorApproveRejectMsg") $exec $ >

    4 < $exec getValue (ErrorApproveRejectMsg) $ >

    5 < getValue ("#local", ErrorApproveRejectMsg) $exec $ >

    6 < getValue ("#local", "ErrorApproveRejectMsg") $exec $ >

    7 < $ErrorApproveRejectMsg$ >

    8 < $exec ErrorApproveRejectMsg$ >

    Assuming that cxt will be your Service or execution context object

    You can do something like this

    DB. PutLocal ("ErrorApproveRejectMsg", "Error");

    cxt.setCachedObject ("DataBinder", db);

    PageMerger h = new PageMerger (db, cxt);

    cxt.setCachedObject ("PageMerger", h);

    InternetFunctions.sendMailTo (usersEmail, emailTemplate, emailSubject, cxt);

    where db is current databinder object, and you can put any variable custom in the workbook by using the putLocal method.

    Thank you

    Vikram

  • "you can be a victim of software counterfeiting" displayed on desktop, how do I close or I just wanted that he appears on the desktop can you give me direct answer to the question?

    You may be victim of software counterfeiting"displayed on desktop, how do I close or I just wanted that he appears on the desktop can you give me direct answer to the question?

    Hi k.Ramesh99905,

    ·         How Windows XP has been installed on the computer?

    ·         Has it preinstalled on the system when it was purchased?

    ·         Did you change to the computer?

    Method 1: Try to validate the copy of Windows and see if it helps.

    Genuine Microsoft software

    Method 2: Check if Windows XP is enabled. If this is not the case, try to activate to check the issue.

    How to activate Windows XP

    Respond with more information so we can help you best.

  • Values of session variables not updated according to the values in the table

    Hello

    I have a problem with one of the session variable that is based on the USER login.

    My session variable "DeptID" has all the values associated with the user. I have in my external table, the USER and its corresponding departments. My init for this variable block is something like

    Select "DeptID", dept_id of user_table where user =': USER ';

    Now I use this variable on my main dashboard prompt and I'll show the results in the command prompt based on the results of sql. Here is my SQL something like

    SELECT 'Department '. "" Department name ""SH"where"Department. "" ID Dept ' = VALUEOF (NQ_SESSION. ("" DeptID ").

    With this method, everything works well and the command prompt displays the correct values.

    But the problem arises when a new Department is added to the current user. When new departments are assigned to the user, the new values does not appear in the drop-down on the line of dashboard until and unless the cache is purged and the server is restarted.

    Thinking that the cache is the issue, I have disabled the cache also in the nqsconfig.ini file. But then as the new values is not displayed. I see that in the file nqquery.log that the old values are sent to the database, that that is the session variable does not get updated with the new values according to the external table.

    You could someone please let me know what I'm missing here?


    Thank you

    Hello

    See this thread for the answer,

    Re: OBIEE external DB security does not completely.

    Thank you
    Swami

  • Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Am not able to resize the fonts, images, or anything that is related to the use of numbers.  How can this be corrected?

    Hello

    Is this a problem of input in any number?

    All applications (such as Notepad) do have the same problem?

    Is your Num Lock?

    Brian

  • How to display a value constant and variable

    Hello
    I'm trying to display a variable in sql the line of command and oracle xe object browser. Here is a small code to assign a value to a variable of an existing column name id that has value 4567 plane of the table. I'm a newbie, so forgive my ignorance:

    Report the number of new_num;
    Start
    Select code in new_num of aircraft where id = 4567;
    end;
    /

    Issues related to the:
    1. something wrong with the code?
    2. How can I he discovers via sql more command line?
    3. can I see it in Oracle XE gui object browser?

    Kind regards
    Valerie

    Dbms_output.put_line ();

    declare new_num number;
    begin
    select id into new_num from airplane where id=4567;
    dbms_output.put_line('new_num:'||new_num);
    end;
    /
    
  • I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I am 62 and although I use my high tower dyly I'm not a COMPUTER technician.

    I posted a question about the FBI virus. How to get rid of him. I ' v was only one answer. Someone to give here can help me with that. I'm 62, and I'm not a computer genius. I have some [eratly helpgetting need to get rid of the virus of the FBI. MS antivirus and scan not work or identify it.  Help, please! 1

    Emisoft is a desperately slow download, as I just discovered.

    You can simply run Malwarebytes and it...

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • How can I make the text box caption to display a text variable that is longer than the length?

    Hi all, I would like to do this: make a text caption to display a variable that contains a paragraph of text that the user has typed as soon as possible.

    I created the maximum length of the variable only 1000 and I am able to partially displayed variable in the text caption - only at the end of the first line of caption text.

    ICan someone tell me how to configure the text caption so that it can encapsulate texts? I can't find it in the properties panel.

    Thank you very much.

    No need to shout, even if I'm not native English, I understood your question very well, and this can be done with the enhanced TextArea widget as I mentioned. Here is a screenshot:

    Workflow:

    • Create a user variable, I scored it
    • Insert twice the widget with variable TextArea (Jim Leichliter, CaptivatePro), on the screen, these are the two rectangles on the bottom red and blue
    • Configure the first Widget to be associated with v_text and show this variable by inserting a default $$ v_text$ $
    • Configure the second Widget to display this variable by inserting returns a default $$ v_text$ $
    • You will need a button to refresh, so that the text appears in the second widget. Here I used the button, and then assigned to the action "Jump to slide" with the same number of slide so that the playback head rewound to the beginning of the slide
    • The text in the second widget shows; as you can see, it can be formatted as you wish.

    If you want to display the text in another slide, no need to make the action update, it automatically displays when you get to this slide.

    It is not a text caption that is displayed, but the widget. Is this a problem?

    Lilybiri

  • Reference variable that is established in the DDX file?

    Hi all

    Is it possible to reference a variable in a DDX file?

    For example, I want to assign a value to the element margin-top in my DDX of a workbench string variable?

    < header margin-top = "85pt" margin-left = "454pt" >

    Thank you, Yan

    Yes, but in the current version you can set the attribute of the source of a process variable.

    However, the way in which you would be process:///process_data/@myVar

    Jasmine

  • How to give different values to different indicators

    Hello

    Please check the attached vi below. IAM reading some numerical values (SS1.vi) and display it in the indicator. ? (In RR1.vi). During the execution of two screws, we can see that the two instruments (pressure gauge and thermometer) showing the same reading. My intension is to display variable values. Inorder to do that can anyone please suggest what changes are made in SS1.vi.I tried a few ways using the generator of NombrAl and all but not worked... Help, please.

    Hi GerdW,

    I solved the problem and the VI is attached. My next intension is to get values of a sensor (supplied) and display in these devices, as shown in RR1.vi.

    In any case thanks for the reply

  • How to pass a value to a variable at the time of the execution of the script

    Hi all

    I need to establish an ODI scenario, with below requriments.

    I have to move the data from flat file to target DB.

    flat file name is not consistent, it must pass the file at the time of the excution of scenario name.

    All could help me how to build this ODI scenario.

    Appreciate your help.

    In the data store where the filename in the "name of the resource', you enter a variable #myVar

    You must recompile your script after that this change was made.

    And when you run the script, follow the «-Project.myVar=c:\filename.txt settings.

    Probably, this link may help you http://blogs.oracle.com/dataintegration/2009/04/using_parameters_in_odi_the_dy_1.html

  • How to access a global variable that is common between the different baskets project library

    My project consist of several libraries, after generation the library project packed for each library, I find it cannot share data in a global variable between different packaged project library file. For example: packed project library #1 contains VI variables global wirte 'position' and give it a value '400 '. Library #2 present another VI project try to read this global variable, but he gave reading of is NULL not "400". Why has this happened? Is it possible to solve, welcome any help, I wll appreciate for this!

    If you understand what is happening here...

    When you build a PPL, it takes in the .lvlib and also all the dependencies of the .lvlib.

    In your case, when you generate the Test Task.lvlib in a .lvlibp, she also pulls on a copy of the DataProcess.lvlib:GlobalsVariable.vi because it's addictive to read GlobalVar.vi.

    When your application runs, you end up with two copies of GlobalsVariable.vi in memory:

    DataProcess.lvlibp:GlobalsVariable.vi

    AND

    Test Task.lvlibp:: GlobalsVariable.vi (I don't know how PPLs namespace dependencies... If there is still the DataProcess.lvlibp)

    Because they are different screws (i.e. in a different namespace), they have their own memory and that's why you can't access the data.

    Your Test Task.lvlibp calls the version of GlobalsVariable.vi, he pulled the dependencies.

    To solve this problem - you must ensure that Task.lvlibp of Test calls the version of GlobalsVariable.vi of the DataProcess.lvlibp - you'll need to replace all instances with the version of the PPL. Of course, if you run DataProcess in the development environment, then it will always be bad namespaced, hence the suggestion to put your global variable VI in is own PPL that you then use in the process of data and Test tasks.

  • How to assign a value to a control to display after loading the page?

    I use JDeveloper 10.1.3.3 using ADF.

    How can I run a support bean method to populate a control immediately after loading the page. My intention is to populate a control hidden with the session id. The code that I would run is something like this:

    FacesContext ctx = FacesContext.getCurrentInstance ();
    ExternalContext ectx = ctx.getExternalContext ();
    HttpSession mySession = ectx.getSession (false) (HttpSession);
    String sessionId = mySession.getId ();

    Where would I put this code?

    Thank you

    John

    Published by: John Matozzi, October 28, 2008 15:47

    Hi John,.

    create a method called getSessionId returning a string in your bean support.

        public String getSessionId(){
    
            FacesContext ctx = FacesContext.getCurrentInstance();
            ExternalContext ectx = ctx.getExternalContext();
            HttpSession session = (HttpSession) ectx.getSession(false);
            return session.getId(); 
    
        }
    

    then in your page you can use the link editor to call the method and display its value.

    
    

    Brenden

  • How to make a refund on an app that I bought by mistake I can not use in the United States

    I have Down loaded and bought an antenna app companion that can not be used in the United States for $2.99.  How can I get a refund

    Purchases are considered final, but you can try the page 'report a problem' to contact iTunes Support and see if they will refund or credit you: http://reportaproblem.apple.com

    Or you can try to contact iTunes support via this page: https://support.apple.com/contact or https://www.apple.com/emea/support/itunes/contact.html

Maybe you are looking for