How to assign the value to the variable of project in the Jython script

Hello

I want to assign a value to the variable of project in the jython script.
I tried to assign the following, but it is throwing some errors.

< @.
int noOfRecords = 10;
#var1 = noOfRecords;
@ >


Can you please help me in this regard.

Concerning
Shyam

Perfect! Good to know that!

Please, don't forget to close the thread and assign the status to 'correct' or 'comfortable' to each response that helped you!

Thank you

Cezar Santos
http://odiexeperts.com

Tags: Business Intelligence

Similar Questions

  • How to assign the next value in the sequence directly in a variable?

    How to assign the next value in the sequence directly in a variable without using a table TWICE in PL/SQL.

    BluShadow wrote:

    How about a quick test on 11g, just to see if you directly select a sequence in a variable is significantly better than the mark of DOUBLE.

    ...

    Nope... no obvious difference.

    This is because there is none: Oracle's SELECT sequence. NEXTVAL FROM DUAL under the covers. The direct assignment is just a convenient encoding for us, but it does not change the work that accomplishes Oracle.

    create sequence s;
    alter system flush shared_pool;
    declare
    l_num number;
    begin
    l_num := s.nextval;
    end;
    /
    select sql_text from v$sql where parsing_schema_name = user;
    
    SQL_TEXT
    Report the number of l_num; begin l_num: = s.nextval; end;
    Select sql_text from v$ sql where parsing_schema_name = user
    Select double S.NEXTVAL
  • How to assign the value to the application-level element

    Hello

    I'm learning to APEX.  I use version 4.2.6.

    My question is, I set a text field called 'FINANCIAL_YEAR' in the login page.  I wanted to know how to assign this value to a text element of Application level (on page sent), so that I can get this value through at my request.

    Thank you

    -Anand

    anand_gp wrote:

    Yes, I created a 'text area' under 'HTML' in the 'Home' page  Who accepts the exercise of a table through LOV.  I intend to assign this value to a global variable so that this variable can be read in any of the application to filter the result set from different tables (not yet built the rest of the application).  To do this, I was intending to use "Shared components"-> "Elements of Application".  I'm still not quite sure how it works.

    Start by reading the documentation on elements of application.

    Go to the shared components > Application parts and create your G_FINANCIAL_YEAR item. Value Session State Protection Restricted - can not be set the browser so that the value is not editable by the user, falsification of URLS or scripts.

    On the home page, if there is not already a button to submit the value of the fiscal year, add one in the HTML area, with the Action as a submit Pageclick. Otherwise, you can do without the button and using submit Page in Page Action when the changed value select the parameter in the list so he can undergo.

    Then, in the section of the Page processing, create a calculation:

    Point Type: Application-level element

    Calculate Item: Application: G_FINANCIAL_YEAR

    Point calculation: After submit

    Type of calculation: Value of the element

    Calculation:

    Run the application, select a value in the list of the fiscal year and submit the page. Review of current session state in the viewer of session state by clicking on the link of Session in the toolbar developer. Select the Elements of Application in the view list, and then click set. The element of your application and its current value must be visible. You can now reference value throughout your application by using the appropriate syntax.

    You should also consider if a default value (for example the current year) using a calculation Application from the point of calculation on the new Instance and coordinate the application point and part of the homepage using point application as the Source of value or an expression with Source page element, the value always, replacement of value that exists in the session state.

  • How to assign a value of the element from page to main page in the column element when Cre

    I have a form build on table T1. The T1 has a primary key defined (T1PK) and four other columns (C1 - C4). I have a form in this table. This form accepts the values of C1 to C4 and displayis an extra point, is not based on columns of T1 - P1_DUMMY. The form for T1PK element has the value "hidden and protected.
    When creating the form, I wanted that the value of the primary key (T1PK) will be obtained through existing trigger. I want to use the value stored in the page called "P1_DUMMY" for P1_T1PK.

    No matter what I do, I always get this error when I hit the button 'CREATE' on the page of the form:

    ORA-01400: cannot insert NULL into ('DEV'. "" T1 ". ("' T1PK")

    The Create button is a condition not to show if the the P1_T1PK page element is NULL. I created page rendering process, the process of transformation of page like this bock of PL/SQL:

    : P1_T1PK: =: P1_DUMMY

    But I still get ORA-01400. The form has the P1_DUMMY as display only, not not to store the State, so I can see that the P1_DUMMY element has the value I want (2).

    How to assign the value stored in P1_DUMMY in P1_T1PK when I click on the button CREATE on this form?

    Thank you for your time.

    Daniel

    Hello
    The belief question is the way in which the calculation is being defined. You are not using the &. rating (dot ampersand) in PL/SQL and SQL.

    Try this.

    1 define the calculation on P1_T1PK of Type calculation of value of the element
    2. on the next page to load textarea, enter P1_DUMMY. No. colon or &
    3. give appropriate conditions

    Kind regards

  • How to assign the temporary tablespace to a table

    How to assign the temporary tablespace to a table

    temporary tablespace can be attributed to the user.

  • 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;
    /
    
  • How to assign the value to a dynamically created flash variable.

    I want to change the value of a variable that is in another flash movie. I loaded the swf file. Inside the function "onLoadInit", I wrote code like below.

    loadListener.onLoadInit = function(target_mc:MovieClip):Void
    {

    This [target_mc + "."] contents.obj.' + mcSelfObj. m_TemparVariables [w] .varname] = 'Left ';

    where mcSelfObj. m_TemparVariables [w] .varname contains 'position', which is the variable I want to change. This declaration is not assign a value to the variable.

    If I hardcode the above statement as below it works

    target_mc.contents.obj.position = 'Left ';

    }

    In the previous version of flash, we used eval() to make over assignments.

    While you don't seem to use AS3, try...

    [mcSelfObj.m_TemparVariables [w] .varname] target_mc.contents.obj = "Left";

    based on what you say works, which is the best I can do to determine where the media should be.

    If these are all a form of variable identity rather than the names of instnance, then you will need to use parentheses for each instance and do not use points

  • How to assign the value of a variable to a quiz?

    Hi, I have a problem, I attempted to set the value of a variable for the quiz on the final value of the project, any suggestions?

    Sorry but I do not understand your question at all. If you talk about a quiz like cpQuizInfoPointsscored or cpInfoPercentage system variable, this is all simply impossible because the system variables are read-only.

  • How to assign a calculation to a variable in the RTF file?

    Hello


    I play a series of if - end if statements to calculate the "Days_Late."

    <? If: DAYS_LATE < 0? > <? xdoxslt:round ((somme (if: DAYS_LATE) div count (PAYMENT)), 0)? > <? end if? >

    <? If: DAYS_LATE = 0? > * <? end if? >

    <? If: DAYS_LATE > = 0? > <? xdoxslt:round ((somme (if: DAYS_LATE) div count (PAYMENT)), 0)? > <? end if? >

    I would like to assign the code above to a variable and use this variable in the following logic <? xdoxslt:IfElse (VARIABLE > 0, round (VARIABLE),-1 * round (xdoxslt:abs (VARIABLE)))? >

    to exercise a function of round_up ("symmetric" rounded). Oracle doesn't have a function for this yet...


    How can I make this work directly in the .rtf file?


    Thank you

    ATP

    Hi all

    I didn't change the data (sql).
    Also, I tried to make it work using the xdoxslt:set_variable () and xdoxslt:get_variable () functions. However, this was not necessary and makes more complex than required.

    It is now resolved using a formula of symmetric rounding (rounded to 0):

    I replaced the VARIABLE with my calculation: (sum (DAYS_LATE) count (PAYMENT) div)

    Thanks a lot for the replies and offers to help her

  • 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 to assign the pl/sql variable to a variable of the page element?

    I want to select count (*) in the emp table.

    assign this count (*) total to a pl/sql variable.

    How can I assign this varialbe pl/sql variable of page element?

    : p2_test = pl_total;

    Thank you.

    Good afternoon

    Try this:

    1. create a process Page:

    Declare
    pl_total number;
    Begin
    select count(*)
    into pl_total
    from emp_table;
    :P2_test := pl_total;
    End;

    Or a simpler approach:


    Begin
    select count(1)
    into :P2_test
    from emp_table;
    End;

    If you use count (1) rather that count (*), you do the inventory column 1 and not the entire file. Oracle then reads just column 1 instead of the whole of the record, speed up your query, if the table can have a large number of columns AND a lot of files.

    Good luck
    Don.

    You can reward this answer by marking as being useful or correct :)

  • How to assign the value "ID or content dDocName" (property of the University Complutense of MADRID) Webcenter capture.

    Hello

    Could you please help me for the script for extracting Webcenter UCMS property in Webcenter Capture. I also have a requirement where I need to assign a value to the UCM property ' dDocName or content ID "of the capture of webcenter.

    Someone please help me with above scenarios.

    Hello

    Thanks for the reply. My requirement is, when check-in file to the AAU, it generates values to the property "docId" for the file that is unique. I need the value of the docId during validation webcenter capture processor. I solved this problem.

    I created a filter in the AAU for archiving profile. This filter is triggered whenever the Service factor of the AAU invoke. In this filter, I can get the value of "docID".

    Thank you.

  • How to assign the variable in the SQL script?

    I have the below running to generate the XML from the file.
    set long 100
    set pages 0
    set trimspool on
    set serveroutput on
    set echo off
    set terminal off
    variable out CLOB
    begin
            pack.proc('&&1','&&2',:out);
    end;
    /
    spool /dir/loc/file1.xml
    select :out from dual;
    spool off
    I'm queue in the order of the coil, the output to a file named file1.xml. I invoke this SQL script from a shell script, I will pass variable association 3rd since the shell script which I want to use in the file ' & & 3'.xml. Help me set this variable to the DIGITAL field in this SQL script and how can I add to the command of the coil?
    set long 100
    set pages 0
    set trimspool on
    set serveroutput on
    set echo off
    set terminal off
    variable out CLOB
    define var1='&1' -- to allow for more readable code
    define var2='&2'
    define var3 ='&3'
    begin
            pack.proc('&var1','&var2',:out);
    end;
    /
    spool /dir/loc/file&var3..xml -- note the substition variable has  . appended
    print out
    spool off
    

    ------------
    Sybrand Bakker
    Senior Oracle DBA

  • How to assign the value to the particular text box field

    Hi all

    My requirement is to call the Web service with the participation of the ADF page.

    The steps I did:

    1. I created a data control to the WSDL-based Web service.

    2. simply drag and drop the process, it is automatically created the form with the fields of entry, press the Process button

    3. when I entered the values and then process button, it'il pass web service values corretly.the is called with the values entered correctly.

    4 but when I try to assign the value of some other material that does not work.

    I am assigning value to the value field navigate to the properties of the particular field = "CRΘER."

    When I like what the value is displayed on the screen. But it will not pass the value to the web service.

    I think that the value is only the display on the screen. Stored not at the level of links. Kindly guide me in this.

    Thanks in advance
    C.Karukkuvel

    Hello

    Just the previous value placed on the next to put that into the first field level JSpx

    If not put a valueChangeListener and EL Expression to set the value

    Kind regards
    Suganth.G

  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

Maybe you are looking for

  • LVDT offset before running the program

    Hi all I use an LVDT to measure the movement of the ground. This must take into account both the consolidation and swelling and therefore requires the LVDT to move in both directions. As a result, the voltage must be reset after the LVDT is pushed so

  • lost the disk in drive C even after disk cleanup (Restore Points)

    I lost a few GB of space in my drive C. I checked the forums and found restore points using little disk space. I went to disk cleaning and deleated old restore points and then I changed the MaxSize parameter for 2BG restore point. After having done t

  • Serial VISTA key.

    An admin or someone would tell me why the serial key for vista that is on the sticker on the bottom of my laptop is different for the serial number that is actually installed...  I bought the Comet, so the laptop I brought is 100% legal, so don't bot

  • Microsoft Security Essentials icon has disappeared from the bottom of my computer.

    How can I put the Microsoft Security Essentials icon back on the bottom of my computer? The icon disappeared. Several times the "speaker" icon disappears also. I look at previous posts and solutions, but I do not see the guests that are mentioned. Th

  • Activation of Windows 7 Home Premium 64-bit

    I reinstalled Windows 7 Home Premium that came with my laptop. After about 2 months, I had a constant black background with the message "Windows 7 Build 7601 this copy of Windows is not genuine" in the lower right corner. Since I got a DVD, how can I