View of the complex Variable

I appreciate that CVI2013 with its new clang compiler now supports data _Complex type - unfortunately the view Variable does only partially: it recognizes the type (Interestingly, it is displayed in the form of complex while bool appears as _Bool) but does not display don't not values...

Thank you for pointing out this oversight. I filed the bug report 426270 to the complex issue. Including watch expressions and debug tips.

I also filed bug report 426273 for number _Bool.

Tags: NI Software

Similar Questions

  • by the way the Session variable of type DATE for opaque filter data view

    Hello world

    You guys can help me please by passing the session variable of DATE in physical layer 'view opaque' data type filter RPD to Oracle database

    I tried following syntax, syntax wise, I didn't get any error, but at the same time this opaque view is not fetch all the records as well. my session variable is 'End_date' and its value is 1998/12 / 31:00:00:00(as_shown_in_RPD_session_windows,_datatype_is_DATETIME)

    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, SH. SALES TIME_ID

    WHERE TIME_ID = TO_DATE (' VALUEOF (NQ_SESSION.) END_DATE) ", ' MM/DD/YYYY')"

    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, SH. SALES TIME_ID

    WHERE TIME_ID = TO_DATE (' VALUEOF (NQ_SESSION.) ("' END_DATE ')", ' MM/DD/YYYY') "

    SELECT AMOUNT_SOLD, CHANNEL_ID, CUST_ID, PROD_ID, PROMO_ID, QUANTITY_SOLD, SH. SALES TIME_ID

    WHEN TRUNC (TIME_ID) = TO_DATE (' VALUEOF (NQ_SESSION.) ("' END_DATE ')", ' MM/DD/YYYY') "

    In the past, I could spend a session variable in an opaque display by using the DATE filter, but which was in DB2.

    I appreciate your time and help

    Finally, I had good format. It's here

    TO_DATE (substr ("valueof (NQ_SESSION. End_date)', 1, 10), "yyyy-mm-dd")

    and here is the source where I got this information

    Using Variables in Session OBIEE in some tables of the physical layer

  • Iterate through rows in the object using the pageflowscope variable view

    I'm looking for a way to browse multiple lines of a view object and the transaction using a variable that is stored in a variable pageflowscope programmatically.

    I have two view objects that have a relationship of the master / detail.  The jsf page ADF Master table secondary table created by the control of data objects. The requirement is to have a single button that when pressed will update all the selected record of the master detail records.  One of the operations that must be done is a value that is stored in a variable PageFlowScope.

    The approach adopted to accomplish this was based on the following video:

    ADF Insider Essentials: Iteration through rows in a view object programmatically

    Author: Grant Ronald

    Link: http://download.oracle.com/otn_hosted_doc/jdeveloper/11gdemos/ADF_Insider_Essentials/IterateRows/IterateRows.html

    I created the Classes of line of sight for the two display objects and developed the method for updating the lines (code below).  The method that takes no parameters, has been added as a tool bar button to the page and works as expected when you use a hardcoded value.  I would add a second update statement in the while loop to update another column, but using the value of the variable PageFlowScope is stored a previous view in the taskflow.

    I thought I'd be able to use AdfFacesContext.getCurrentInstance () .getPageFlowScope().get("objectid") to get the value but I get a warning in the source editor, 'this guy or a variable 'AdfFacesContext' not found. "

    How can I do this?

    JDeveloper Studio Edition Version 11.1.2.4.0

    METHOD CODE:

    /**

    * Method to update the tool work order status

    */

    public void checkInTools() {}

    All lines wor (RowSet) = getWOToolAsg ();

    While (wor.hasNext ()) {}

    CurrentRow = (WOToolAsgVORowImpl) wor.next () WOToolAsgVORowImpl;

    currentRow.setToolActive("Y");

    Add code here to get OpNmb of pagescope variable and update record in table - type String

    }

    }

    Thank you.

    Scott

    You must import the class to use.

    Import oracle.adf.view.rich.context.AdfFacesContext;

    AdfFacesContext (Java QAnywhere for Oracle ADF Faces)

  • What is the correct notation for complex variables

    I need to handle files after download. They are all uploaded in 1 directory by a flash component and then I need to rename them, and move to the directory that corresponds to the choice of categories and subcategories. Now I'm having trouble finding how to get my variables correctly

    It's the thisFiletoMove1 variable, it must match the destination file in the cffile tag

    (< FileExists('#request.site.imgupload#\max_#MultiPowUploadFileName_0#') cfif >
    < cffile action = "Rename".
    source="#request.site.imgupload#\max_#MultiPowUploadFileName_0#".
    destination="#request.site.imgupload#\#request.currentimgid#_max.jpg" >
    < cfset thisFiletoMove1 = #request.currentimgid #_max.jpg / >
    < / cfif >

    < cfset thisFiletoMove1 = #request.currentimgid #_max.jpg / > is what gives an error construct CFML invalid encountered, ColdFusion was looking at the following:

    _max.jpg

    Then I try

    < cfset thisFiletoMove1 = #request.currentimgid & "_max.jpg" / > and I get

    The C:\websites\beta.antiek.net\demo\galleries\test\thisFiletoMove1 source specified in the cffile tag is not valid

    So now I wonder, what is the correct way to do this?

    Bianca

    bianca_homedev wrote:

    I need to handle files after download. They are all uploaded in 1 directory by a flash component and then I need to rename them, and move to the directory that corresponds to the choice of categories and subcategories. Now I'm having trouble finding how to get my variables correctly

    It's the thisFiletoMove1 variable, it must match the destination file in the cffile tag


     
    source="#request.site.imgupload#\max_#MultiPowUploadFileName_0#".
    destination="#request.site.imgupload#\#request.currentimgid#_max.jpg" >
       

    is what gives a construction of CFML not valid error found, ColdFusion was looking at the following:

    _max.jpg

    Then I try

    and I get

    The C:\websites\beta.antiek.net\demo\galleries\test\thisFiletoMove1 source specified in the cffile tag is not valid

    So now I wonder, what is the correct way to do this?

    All are both wrong:


    You were near. What you meant was probably

    However, are even better

  • using the function - how to use the values of the input variables on the table select statement names

    Hello community, I have a problem when creating a function. The purpose of this function is to check the table of weather gave yesterday or not. We must check this on different tables on different sachems. We are creating a function with input variables.

    CREATE OR REPLACE FUNCTION IN_SCHEMA.IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    )

    RETURNS INTEGER

    AS

    -Declaring variables

    v_is_true INTEGER.

    BEGIN

    SELECT

    CASE

    WHEN MAX (in_datefield) = TRUNC(SYSDATE-1)

    THEN 1

    ON THE OTHER

    0

    END

    IN

    v_is_true

    Of

    in_schema.in_tablename

    ;

    RETURN v_is_true;

    END;

    /

    When creating, I got error: [error] ORA-00942 (44:19): PL/SQL: ORA-00942: table or view does not exist

    How to use the values of the input variables on the table select statement names?

    Hello

    Here's a way you can use dynamic SQL statements for this task:

    CREATE OR REPLACE FUNCTION IS_YDAYDATA_TO_TABLE

    (

    in_schema IN VARCHAR2,

    in_tablename IN VARCHAR2,

    in_datefield IN VARCHAR2,

    in_first_date DATE DEFAULT SYSDATE - 1,.

    in_last_date DATE by DEFAULT NULL

    )

    RETURNS INTEGER

    AS

    -IS_YDAYDATA_TO_TABLE returns 1 if in_schema.in_tablename.in_datefield

    -contains all the dates in the in_first_date of the range through included in_last_date

    - and it returns 0 if there is no such lines.

    -If in_last_date is omitted, the search only the data on in_first_date.

    -If in_first_date is omitted, it defaults to yesterday.

    -Time parts of the in_first_date and in_last_date are ignored.

    -Declaring variables

    sql_txt VARCHAR2 (1000);

    v_is_true INTEGER.

    BEGIN

    sql_txt: = 'SELECT COUNT (*).

    || 'FROM ' | in_schema | '.' || in_tablename

    || 'WHERE ' | in_datefield | ' > =: d1'

    || «AND» | in_datefield | '< >

    || 'AND ROWNUM = 1';

    dbms_output.put_line (sql_txt |) '= sql_txt in IS_YDAYDATA_TO_TABLE");  -For debugging

    Sql_txt EXECUTE IMMEDIATE

    IN v_is_true

    With the HELP of TRUNC (in_first_date) - d1

    TRUNC (NVL (in_last_date

    in_first_date

    )

    ) + 1                -- d2

    ;

    RETURN v_is_true;

    END is_ydaydata_to_table;

    /

    DISPLAY ERRORS

    If you must use dynamic SQL statements, put all the SQL statement in a single string variable, such as sql_txt in the example above.  In this way, you can easily see exactly what will be executed.  Comment out the call to dbms_output under test is completed.

    Try to write functions that will address not only the question that you have now, but similar questions that you may have in the future.  For example, now that interest you only to the verification of the data of yesterday, but later, you might want to check another day or range of days.  The above function combines the convenience of a function simple (looks like yesterday data if you don't tell him otherwise) with the power of a more complex function (you can use the same function to check any day or range of days).

  • new variable networked shared in my computer, but not in the shared variable engine list

    I have a Variables.lvlib shared on a cRIO target and test algorithms when I don't have access to material cRIO. Thought I could do a new project, add the library to the windows target (workstation). I need to add a few additional variables, I did in the original (i.e., while the library was the target in real time). Then create a new project and added the lvlib to the project (under my computer), and then wrote a VI to write in these SVs. When I let fall a constant Variable Refnum shared on the block diagram and browse for objects variables under 'Variable' Motors > ni.var.psp > localhost > shared Variables, list of variables shows everything except the 6 new variables. When I switch the view 'Current project', I get the same variables for new list WITH THE 6. However if I select the variables in the list and run the VI I get an error-1950679035 impossible to locate the variable in the shared Variable engine. Of course, I forgot something, anyone out there set me straight?

    Thanks for your time - lmd2

    Hello Lawrence,.

    Looks like you'll have to maybe just to deploy the new variables - refer to this document:

    LabVIEW Help: Making static Variables available on a network

    http://zone.NI.com/reference/en-XX/help/371361K-01/lvconcepts/sv_deploying/

    Hope that helps!

  • Problem with the window "Variables and stack calls ': Options / interpret as

    Hello NO,.

    I found a way to run the JIT-debugger LabWindows/CVI on ICB itself...

    This is the procedure:

    1. I put a breakpoint, run the code, and the breakpoint, I opened the window "Variables and stack calls" by right clicking on a variable and selecting 'Display Variable View.
    2. Any variable shown, I right click and choose Options / interpret as

    You're right, I could now reproduce as well. It seems as if the presence of a function pointer, if set or not, causes interpret as shatter the debugger. The ADE does not seem to be affected, but you will probably have to restart your debugging session when this happens.

    I created the bug report 425151.

    I really appreciate the time spent in this narrowing for me. Thank you!

    Luis

  • If the Environment Variable in Vista

    How to change the Environment Variable in Vista? ... I could do with XP using Control Panel > performance and Maintenance, but could not find the area revealing in Vista.

    Hello

    When you see something surrounded of % this means there is a system environment Variable
    together who will take the place of it. SystemRoot where Windows so for most, it will be
    C:\Windows however if Windows is on drive D: it would be usually be D:\Windows.

    Start - type in the search box-> explorer.exe SystemRoot

    Enter and see where it leads you.

    Another is %UserProfile%, which is the currently logged-on user

    Start - type in the search box-> explorer.exe %USERPROFILE%

    Enter and see where it leads you.

    With the help of people and other environment variables, commands can be written so that they will apply no.
    matter where Windows to installed or that the user connects (for the above examples).

    To view the current system Environment Variables:

    Start - type in the search-> CMD box find top - make a right click on - RUN AS ADMIN

    When the COMMAND PROMPT opens it will look something like

    C:\Windows\System32 >

    Type SET and press on enter and you will see the present commands.

    to see the command SET type in ALL of the structure? and press on enter – the space between T and.

    =======================================================

    Environment variables
    http://vistaonwindows.com/environment_variables.html

    Create your own Environment Variables
    http://Lifehacker.com/259018/create-your-own-environment-variables-for-quick-folder-navigation

    Change a path of users in Windows Vista: Vista Path Environment Variable
    http://www.question-defense.com/2009/06/22/modify-a-users-path-in-Windows-Vista-Vista-path-environment-variable

    Environment variable
    http://en.Wikipedia.org/wiki/Environment_variable

    I hope this helps.
    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Block initialization parameter default value of the session variable used in default prompt as "(toutes les valeurs de colonne)" "

    Hello

    I have a business requirement for a dashboard that we built location to get the users that belong to a certain geographic location to the default view of the dashboard with guests together in their geographic area.  He is just giving them a default view to enhance their experience when they connect each day.   Because of the way that we put the default value for the period of time they watch, with the HELP of SAUVÉ the CUSTOMIZATIONS IS NOT AN OPTION.

    I created the default values for the prompt called "area" in a block of initialization. This variable is called V_USER.

    My problem is that only about 80% of users have a value of 'Area' in the hierarchy of our employees.   I would like to someone else by default "(toutes les valeurs de colonne)". "  I was unable to understand how and where do.

    Some of the things I've tried:

    (1)Setting the default value in the initialization of an empty space block ("in SQL)
    (2)Setting the default value in the initialization "(toutes les valeurs de colonne) block '"
    (3)Setting the default value in the initialization block 'null '.

    None of them have worked and the result is that the user who does not have an area ends with a load of zombie dashboard, and while the guest gave rise to fashion "- select value -", the user must press "Apply" again to get the dashboard to display the data.

    The text which lies behind the encircled area in green below correctly becomes the value of the variable to V_USER (it is empty as default and I don't have a box).

    For @{biServer.variables ['NQ_SESSION.]} {[USERS ']} the default zone must be @{biServer.variables ['NQ_SESSION.]} {[V_USER']} {}

    In the red circles below you can see that the guest actually becomes a value: *) nqgtu(* )


    The illustration below indicates the default value for a user without a box. the second quick block is not updated until you press on apply again...

    Thanks for your comments.  I was not able to make this work for my needs.  I have however to solve the problem by changing using a 'SQL result' for my default selection.  Then I created a query that returns rows NULL unless there is a correct answer:

    SELECT 'Service Delivery MOS '. "' Organizational hierarchy. "" Area ".

    "MOS DELIVERY."

    WHERE ("organisational hierarchy". ("" Area number "> 0) AND ("Service Delivery MOS". "Organizational hierarchy" "." " Zone' = ' @{biServer.variables ['NQ_SESSION.]} {[V_USER']} {} ")"

    The "returns no line' I mentioned above resulted in all values being selected.

  • difference between the view and the procedure

    Hi Master,

    Today I received a request from my senior technical leader... !!

    Q > what is the difference between the view and the procedure?

    I got response like this...

    A view represents the logic of one or more tables/views. It won't take no place in db... It is a virtual table, query will only store in db... useful

    for safety... If the main table has obtained changes... automatically discovers also change... etc.

    Proecudure is a db object will be performs a perticular action... It may or may not return values. ?

    But somehow, he isn't happy... He expects more... .very close view of diff. b & w and procedure.

    Please explain it to me...!

    Concerning

    AR

    874273 wrote:

    Hi Blu,

    Thanks for your replies...! But we think if notice and procedure will be the same no matter what point of view? Both are the same? If Design view... We can create a stored procedure?

    How a view and procedure may do the same thing?  They are two different things with different objectives.  You use the correct one depending on what you want to achieve; they are not interchangeable.

    And another question...!

    (Q) how you will store Japan, characters of China in a database table? will there be a new feature in Oracle 11 g?

    (A) I use dbms_lob package? Japan/China characters are multi byte characters... so we can use the nclob data type?

    is this correct... ?

    No, it not there no novelty in Oracle 11 g for the storage of Japanese or Chinese characters, because there is already a feature for their storage in previous versions as well.  It is determined by the parameters characterset and nationality that you use when you create the database.

    Why would you choose to store them in a LOB using DBMS_LOB?  Yes, they have multibyte characters, but if you have configured your database for the correct character sets, for example using UTF - 8, then you can store the characters in VARCHAR2, like any other language.  The only difference is that the storage of 4000 bytes limit still applies, so you maybe isn't able to store 4000 multibyte characters in a varchar2 column 4000 single-byte, it can be as little as 1000 characters if they are all characters in 4 bytes.  (Note: 12 c limit in SQL can be increased up to 32,767 characters, to harmonize it with variable varchar2 PL)

  • The session variable, NQ_SESSION. has no definition of value. (HY000)

    Hi all

    I use OBIEE 11.1.1.6.8 version and have deployed version 6.0 of BASEL RPD. When I go to the dashboard I get the below error

    Error
    View display error

    ODBC driver returned an error (SQLExecDirectW).

    http://192.168.1.18:9704/analytics/res/sk_blafp/common/errorminus.gifError details

    Error codes: OPR4ONWY:U9IM8TAC:OI2DL65P:OI2DL65P

    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error occurred. [nQSError: 43113] The message returned by OBIS. [nQSError: 23006] The session variable, NQ_SESSION. RPB_Tier1Capital, has no value definition. (HY000)

    SQL published: {call NQSGetQueryColumnInfo ("SELECT saw_0 FROM ((SELECT sum ("head of Accounting Standard in fact"." Standard Accounting head amount "(/1000000) saw_0,"Head of Accounting Standard"". "" Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1Capital) saw_3, saw_4 3, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP058") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(/1000000) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPI_TotalEligibleCapital) saw_3, saw_4 4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP210") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum ("head of Accounting Standard in fact". "Standard Accounting head amount"(*100) saw_0, "Head of Accounting Standard" "." " Saw_1 head Accounting Standard identifier', '-D2061Legal entity Info "." Customer First Name' saw_2, VALUEOF (NQ_SESSION. RPB_Tier1CapitalRatio) saw_3, 6 saw_4, '-Dimension Run D1008 '. " Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (Run surrogate key' AS VARCHAR (10)) saw_5 'Basel' WHERE ('head of Accounting Standard". ("' Chief Accountant standard identifier" = "CAP214") AND ("-D001 Date Dimension". "") (Date of extraction "=" 2013-10-04 ") AND (" '-D2036 Type of Cosolidation legal entity "". "") Basel consolidate Option Type Description"(" GROUP")) AND ("-Info entity D2061Legal "." ") (Client name' IN ("*) nqgtn(*'')) AND (" "-Dimension run D1008" "." ") Run the Description ' | » -'' || CAST ('-D1008 run Dimension '. ' ") (((Run surrogate key' AS VARCHAR (10)) IN ('Basel II Capital calculation-97000106'))) UNION (SELECT sum (case where "Accounting Standard head".)) «Standard accountant Chief identifier "=" CAP090 "then"fact head of Accounting Standard".» "" Flat rate of chief accountant "when

    Can someone help me please. I'm new and I have no experience with the available filters.

    The session variable, NQ_SESSION. has no definition of value. (HY000)


    This means that your init block does not work. Check the init block why its not leading is not to any data.

    only when the init block fails in the data, the server checks for the default value of the variable.

    Since there is no default value, you get this error.


    Init blocks can fail because

    1 connection pool does not work.

    2. the table or view does not exist

    3. no data in the table

    4. the filter in the sql in init block is not initialized if his coming of another variable of session.


    in general, no data should bring no results in a report.

    Since you have a session variable as part of the report, and this variable initialization failed, you get this error.

  • lose the url variable after the notation in the session

    I have a coldfusion helpdesk application that is secured by a system of connection application.cfm.  Once a ticket is submitted, it sends an email with a link to view the ticket.  The link contains a variable to url for the link between it and the correct ticket.  If the user is not connected, the url variable is naked after the connection process.  Is it possible to prevent this?

    From your description, at least 2 applications are involved. A single application takes the user not authenticated to the login page. As well as the URL variables. I imagine that a second request then takes him - without variables URLS! -from the login form to the page of the form of action, where his letters of credence are validated.

    If so, then this is the expected behavior. You can replace it as follows. Enable session management and implement the following on the login page:

    This translates into ColdFusion, storing the value of each variable to the URL as a variable of the same name in the scope of the session. Thus, the values of URL.x, URL.y, etc. will be stored, respectively, as SESSION.x, SESSION.y, etc... You could then transfer of respective session values in URL field in the links in the subsequent pages.

  • ADF:views with the user in the project template settings

    I develop my login on ADF Mobile screen which calls the methods of a Web Service. Our web service is created on the ADF Model project. (Exhibitor on AppModule service interface). Here's the question. I have a LoginView I created in the model. This display request is:

    SELECT COUNT (*) lgn
    USERS
    WHERE username =: uname AND password =: pwd

    uname and pwd are added as binded variable in the next screen and NGLS is added as an attribute.

    We want to consume this view of the Web Service data command. However unlike tutorials when we drag and drop pview of the data control to the AMX page is unable to detect the parameters and the return variable. Problem seems to be on the model side because there is no function on the page web service test as well.

    I appreciate if we can can tell me how to present data (or create views side model) and expose a service interface that contains the parameter of the user (for example, uname and pwd) in where clause and a return variable (lgn for example).

    Thanks in advance

    Instead of using a VO with a fixed where clause, use a VO with a criterion for the view.
    Then, when you create the service interface you will be able to add to the criteria of the view to your interface.
    This will add a method that you can use and pass parameters too.

  • With regard to the dynamic variable repository

    Hi Experts,

    I made a dynamic variable repository. This variable is calculated the date of beginning of the week.
    I use this variable in the command as a default prompt.
    the problem I am geeting that its value is not getting updated. It shows the static value that I gave you in default initializer
    RPD.i want to, its value is changed in every week, but it does not change, his shows always value that have default
    in view of the RPD.

    Please share any solution for this problem.

    Hello

    Please use the below SQL syntax in the default selection of the guest of dashboard.

    SELECT CASE WHEN 1 = 0 THEN date_column of another TIMESTAMPADD(SQL_TSI_DAY,-0, CURRENT_DATE) END OF SH

    Concerning
    Young

    NOTE: Please mention if this solved your problem/still face and close the message.

  • Get NaN with the Javascript variable

    Hi all

    I'm learning javascript and I'm having a problem. I can't use a variable in javascript correctly. The function below shows the problem. When I use the variable vRow gets my value, however when I try to use the link_line variable I get NaN in my field in a table (f37).

    Can someone identify the problem here? I tried everything, including parseInt, parseFloat conversions, but I can't understand what is wrong.

    Thanks for your help!
    <script>
    function f_ValidateLinkLine(pThis) {
        
       // The row in the table
     var vRow = pThis.id.substr(pThis.id.indexOf('_')+1);
    
      // A value entered by user in tabular form on this row
     var link_line = parseInt(html_GetElement('f20_'+vRow).value);
      
         // Set the value for f37
     
        // This works!
        html_GetElement('f37_'+vRow).value = parseFloat(html_GetElement('f01_'+vRow).value);
    
        // This puts NaN in my field! Why?
        html_GetElement('f37_'+vRow).value = parseFloat(html_GetElement('f01_'+link_line).value);
     
        } // End ValidateLinkLine
    
    </script>
    Published by: blue72TA on August 12, 2011 12:09 AM

    Hmmm... Is it possible that it's to do with the naming convention for item IDs tabular?

    I have the feeling that the reason why your call to

    alert( html_GetElement('f01_'+link_line).value )
    

    Returns "undefined" is perhaps because the item you are looking for is actually called something like:

    F01_0001
    

    So if you simply concatenate F01_1, of course I don't think he'll find something with this specific ID (even if from a semantic point of view, that's what you intend). Try the same test, except F01_0001 hardcode in his place, I think you'll probably have a more fruitful response.

Maybe you are looking for