How can we give the values of the variable

Oracle Forms6i

Hai All

I'm generating a daily presence on the teams. In what I wrote an ifelse condition it work successfully and but he gets only 350 line on 800.

I declared a variable and I need to know how to assign values to the variable Pls tell the steps to follow. I did it correctly, but there is a logic error in my code. Let give me a few steps to solve the problem

My code is

declare
t_in varchar2 (25);
t_out varchar2 (25);

cursor cur_test is
Select * from dail_att where intimate = t_in and outtime = t_out;
-in t_in, t_out dail_att;

Start
loop
go_block ('TEST_SRI');
PREMIER_ENREGISTREMENT;

If: bartime between 0145 and then 0630
Update dail_att set = outtime: bartime where barcode =: bar code
and ATTEND_DATE =: bardate-1 and intimate are zero and outtime is not null;
elsif: bartime between 0630 and 0900 or: bartime between 1130 and 1230 or
: bartime between 1700 and 1800 and t_in 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 t_out 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.

end if;
WHEN THE OUTPUT: SYSTEM. LAST_RECORD = "TRUE" OR: BAR CODE IS NULL;
NEXT_RECORD;
END LOOP;
forms_ddl ('commit');
exception
while others then
forms_ddl ('rollback');
message(SQLERRM|| dbms_error_Text);
message(SQLERRM|| dbms_error_Text);
end;


Concerning

Srikkanth.M

use you make of your variables t_in and t_out I guess you want before loading with the values they have in the current row of the cursor... I tried to offer you a way to assign a value to your [another post | http://forums.oracle.com/forums/thread.jspa?threadID=1019382&tstart=15]... see if this helps

Kind regards

Luca

Tags: Oracle Development

Similar Questions

  • How can I give the permission to open the files after a complete transfer of an MBA

    I transferred my old macbook 2008 an MBA from 2014 and user files cannot be opened because I do not have permissions. How can I give permission - I'm the admin.

    The usual way to transfer content to a new Mac is to use the installation wizard: move your content to a new Mac - Apple Support. Which warp any permissions issue that can come from other file transfer methods.

  • How can we use the variables name, for example?

    I use 9 textbox in my step. The names are similar, only difference is the last character. (s1_0, s1_1, s1_2,...). I am using these textbox in a loop. But I couldn't find the right typing... s1_ [i], (i) s1_ or s1_ {i} gives an error.

    s1_0.text = 0
    s1_1.text = 0
    s1_2.text = 0
    s1_3.text = 0
    s1_4.text = 0
    s1_5.text = 0
    s1_6.text = 0
    s1_7.text = 0

    How can he do the shortest hits for this problem?

    Use the operator [] table:

    for (var i: uint = 0; i<>

    This ["s1_" + i.ToString ()] .text = 0;

    }

  • How can I pass a value to a variable binding in a report query?

    I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:

    SELECT EMPNO, EMPNAME, EMPDEPT

    FROM EMP

    WHERE EMPNO =: PARAMETER;

    I want to call the report print directly from a page, by using the url print showed by apex:

    f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT

    How can I pass the value of the variable binding: PARAMETER using this URL?

    I don't think you can use the url parameter passes in a report query.

    the binding variable: PARAMETER must be a page element or an element of the application.

    use the "include session information and application" in the defination of report query to bind the value when the report is run

  • How can I give the entire Muse site to the customer.

    My images for a site of Muse are scattered all over my computer. How can I save everything in a folder to give my client computer to continue. Any help would be appreciated.

    I think the question is obvious, from the typical users of Muse : they put all kinds of files, also Photoshop files. So the problem is mainly on things which are 'before' available to the Muse , not after.

  • UB12: When I create a part, how can I give the 3D appearance a ring shape (coil)?

    Hello

    My circuit uses a custom coil: 12.13 mm outside radius, inside radius 11,13 mm, height 1. 00 mm.  I tried to make this shape in UB by drawing a circle of radius of 11.63 mm with a thickness of 1 mm.  Then in the 3D settings, I did the height of offset 0mm and 1 mm.  This gave me an object round solid with good height and diameter.  I figured out that if i select Create hole, it will create a depth in the center of the diameter of the circle.

    So, I did a turn on the 3D layer with the same RADIUS as the inner radius of the coil.  I put that to create holes.  The I made another circle on the 3D layer with a radius of RADIUS outside of the coil and solid to define.   Then I selected the two circles and looked at the tab 3D of the Properties dialog box.  I again had a solid object.  How can I be subject to smaller radius with the hole in it the RADIUS substitution more large object without a hole in it, then it is combined a form of ring?

    Or, there may be a better way to make this form of ring?  Of course, this reel surrounds a bunch of components on a PCB, so when you are finished, the 3D view of the coil to "reveal" details on the circuit board in the center of the coil (components, printing, etc.).

    Hi,

    I don't know if that's what you want to do, but take a look at the attachment.  I placed two circles on the 3D layer, 12.13 mm and the other for 11,13 mm.  The inner circle, I put the size equal to the outside circle and I checked the option box 'hole', also on the "Hardware" tab, I did the color of the inner circle that is different than the outer circle.  When you look at the 3D preview, this part looks like a ring.

    When you open my file, click the componnet and select change > implementing change to show what I did.

  • How can I change the variables in a fitting model?

    I use the VI of the restricted non-linear curve adjustment to adjust a non-linear curve and I use it in mode where provide you the reference to the VI to the fitting model. (Dark teal blue wired to the fitting vi)

    In my adjustment settings I n1 and d (refractive index and thickness), however, I also have settings that I would change my front panel such as the wavelength (lambda) and index of refraction n0 and n2 from the surrounding media. I just insert these values as constants before (laying down 1,519, etc.) but now I need to change them without having to rewrite the reference to the VI each time. How can I do this?

    Use the entrance of 'data' (on the top of the conpane but not identified in the contextual help window). This a Variant data type, so you can plug anything for her.  You can use a cluster or to cases where all the data are of the same type a table.  Use a cluster typedefed with named items and it becomes very easy to document what is happening in the IA function. Use the variant of the function given inside the function VI with a constant pile of typedef wired for the type of input data.

    Lynn

  • How can I update the variable void by Maxl

    I write a lot of windows to update variable sup using Maxl.All void variables are defined at the level of dbs Application.all.

    I can update variables defined at App.db1 by writing
    change the database app. Db1 variable value "name" "$1."


    but I do not know how to upgrade the variables that are defined at the level of dbs for an application.

    Have you tried to use

    modify application appname set varname variable varvalue;

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How can I measure the variable tension with the DMM and switch?

    Hello, engineer,

    I am a student, I want to measure the varying tensions from V to Via. I have the following equipment: SMU-1065 PXI-4065 PXI-2529. I use the PXI-8360 and PXI-8361 to connect with my PC. I hope I can do that when I have the next blood I should click with the mouse and connect the right position to the object of measurement.

    How can I achieve that?

    Any suggestions with great satisfaction.

    Since I know a little English, if I did not explain my question clearly, please ask me.

    Best wishes.

    Kind regards.

    chuanyuehuoxian

    Yes, you can.

    You can set the samples when using DMM.

    You can also refer to the example in LabVIEW.

    THX!

  • How can I view the variables with # in them?

    Hello friends of the CF.

    I allow my site users to create unique user names and upload photos.  They are then able to find these items for the exact name, they came.

    Today a user registered with the name attic #4.

    How can I avoid getting a CF error when on his profile page, I exit < cfoutput > #username # < / cfoutput > where username = attic #4?

    Thank you!

    You have to escape them by adding and # but since it is in the middle of a variable may have to write some kind of filter. For future claims, I'd create a script that does not allow special characters until the account is created.

  • How can I configure the variables shared between executables created in sepparate projects

    Hello

    I have several projects sepparate with their own respective executable files and I would like to be able to these executables to all share the same variable (one program control the value of the variable, while others read her).

    I got this configuration to work on my home computer (being able to access the variable Manager, etc.), but I need to deploy these executables on different computers that do not have the labview development program. What should I do so that I am able to put these executables on any computer (I guess I have to configure a path to the shared variable which is always in the same folder, etc.)

    Thank you

    Vlad

    Hi Vlad,

    I think that this article may answer some of your questions about the variables shared in deployed applications.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/9900

    Looks like you already have your executables built, but this article may answer some questions about their deployment to other machines.

    http://zone.NI.com/DevZone/CDA/tut/p/ID/3303

  • 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.

  • How can I update the displayed variables?

    I use 6 Captivate to create a TV like quiz game in which two teams are competing. I created two variables to track each team's points and these variables are displayed on each slide of the question. The action on the success of each slide in question uses a tip action to allocate 100 points to the appropriate team. The variable updates correctly; but only shows the updated value when the next slide appears. How can I get the variable to update as soon as you click Submit (i.e. when the correct feedback is displayed)?

    I'm new to advanced so please be very detailed in your response!

    You define an action on success to increment your variable, just without doubt?  What you're missing here is that the success and events on the last attempt for quiz questions only fire once the legends of feedback are rejected.  The only way you can get these events fire when the user clicks the submit button is to remove the captions of your comments.

  • How can I get a value from a function from pl/sql by OADBTransaction

    Hi all
    Hope you will be fine.
    as we know, we can get a sequence by this code value:
    Super.Create (AttributeList);
    Transaction OADBTransaction = getOADBTransaction();

    Vendor ID is obtained from the table sequence
    Number supplierId = transaction.getSequenceValue ("FWK_TBX_SUPPLIERS_S");

    My question is how can I get a value in a variable to a pl/sql function:
    the function is defined as follows:
    ******
    create or replace function getNextTrans return varchar2
    is
    Team varchar2 (20);
    Start
    SELECT "CASH". TO_CHAR (SYSDATE, 'DDMMYYYY') | GP_CASH_TRX_SEQ. NEXTVAL FROM DUAL;
    return team;
    end;
    /

    Hey Dina,

    Reference http://www.oraclearea51.com/oracle-technical-articles/oa-framework/229-calling-database-procedures-and-function-from-oaf.html

    Kind regards
    GYAN

  • NOAE: How can I get the real value of FPS?

    I implement an external encoder as an After Effects plugin library. This requires a value for the encoding of the FPS as a float value.

    With the help of:

    ERR (suites. IOOutSuite4()-> AEGP_GetOutSpecFPS (mouthand fps));

    gives a completely ridiculous value (1964114, when the FPS publication is 29.97). How can I get the real value of FPS?

    Hello

    It seems that AEGP_GetOutSpecsFPS returns a value of type A_Fixed.  You can use the macro FIX_2_FLOAT() (defined in AE_Macros.h) to convert to a float value.

Maybe you are looking for

  • HP spectrum x 360 13-4003DX: dismantling of spectrum x 360 HP 13-4003DX

    Hello. I want to replace the charge port in my computer hp laptop, the spectrum of HP 360 x 13-4003DX running continuous. The laptop stopped charging, but it boots still on. I already ordered the corresponding part: 801513-001. I would like informati

  • First crash of HP program running with arguments in the RPN

    (The first HP 20150427 firmware version) The following basic program will result in the application crash and HP first reboot when running in RPN mode. When executing, it calls for the parameters and then crashes when you press OK to continue executi

  • Can I make a backup of the windows updates?

    Can I make a backup of the windows installed updates? If so, how can I do it? I don't want to search for updates (one) if I have to install my OS (Vista Ultimate 64-bit) again!Thanks in advance!

  • HP dv6 prod. #a1u60av 2 years

    When I update my wireless drivers, they last not but a day or two. Can you help me.    Thanks bg patterson

  • access to Windows Firewall

    the Windows Firewall blocks the functions of scanning on my Dell V310, I am informed to allow access. How do I enter the windows firewall settings to do this?