Returns the lowest value of two fields

Hello

I have two domains that users manually enter in a form.  Value1 and Value2.

Someone at - it suggestions on the best way to use JavaScript to return the lowest value of the two fields?

Thank you

Natalie

I think I misunderstood what you mean by any, I thought you wanted the calculated value to be None. The two fields value digital formats and modify the script for:

Custom calculate script

(function () {}

Initialize the array

aNums var = [];

Get the field values as strings

var s1 = getField("Value1").valueAsString;

var S2 = getField("Value2").valueAsString;

Convert values to numbers if not empty and add to the table

If aNums.push(+s1) (s1);

If aNums.push(+s2) (s2);

Set the value of this lesser field of entries

If both are blank, this field blank

Event.Value = aNums.length? Math.min.Apply (null, aNums);:

})();

Tags: Acrobat

Similar Questions

  • get the value of two fields in a field

    Hellou,

    I need some new help with javascript

    Currently I use the below code to get the value of one field to another:

    getField("Text35").value = getField("Text1").valueAsString;

    Now, I wonder how to change this code, so I could get the values of two fields in one. I for example field 'Name' and 'name' field, now I want to show in the field 'name '.

    Example, if the firstname field have John value and the value of the lastname field is Doe, I want to show in the field name as "John Doe".

    I hope that u understand what I want

    Thank you for helping me!

    getField("Text35").value = getField("Text1").valueAsString + "" +.

    getField("Text2").valueAsString;

  • SQL-MIN() don't not returns the minimum value

    This is my code;

    $SQLx = "SELECT MIN (price_from) AS minimumprice FROM AN_pricetable WHERE accomm_id =". "." $db_field ["accomm_id"];

    $resultx = mysql_query ($SQLx);

    $pricefrom = mysql_result ($resultx, $i, 'minimumprice');

    If ($pricefrom == 0) {}

    $pricefrom = 'TBC' ;}

    But for some reason, it is not the minimum value "price_from". For example, several rows in the table have the same "accomm_id", and their values in the field 'price_from' are: 8, 12, 50-7, but the SQL code returns the MIN 12. What I'm doing wrong here?

    Thank you

    What is the data type of price_from?  If it is a type of string (char), then 12 would be the lowest value.

  • How to choose the lowest value of the record

    I would return the lowest bidder of the recording of the same rental date and call number.
      SELECT   v.vendor "Vendor Id", INITCAP (v.vnames) "Vendor Name", B.DATELET "Letting Date" ,d.call "Call Number",
                      TO_CHAR (d.calcbtot, '$99,999,999.99') AS "Bidders Estimate",
                      TO_CHAR (SUM (q.qty * q.price), '$99,999,999.99')
                                                                       AS" Enginers Estimate"          
                    
                 FROM letprop l,
                      proposal p,
                      propitem q,
                      bidlet b,
                      bidtabs c,
                      itemlist i,
                      vendor v,
                      bidders d
                WHERE (l.letting = b.letting)
                  AND b.letting = c.letting
                  AND p.cspecyr = i.ispecyr
                  AND q.prpitem = i.item
                  AND p.contid = l.lcontid
                  AND q.contid = p.contid
                  AND c.vendor = l.avendor
                  AND l.CALL = c.CALL
                  AND q.lineflag = c.lineflag
                  AND q.iplineno = c.iplineno
                  AND l.letting = d.letting
                  AND c.letting = l.letting
                  AND c.CALL = d.CALL
                  AND c.letting = d.letting
                  AND v.vendor = d.vendor
                  AND l.letstat = 'A'
                  AND  b.datelet  between to_date ('2007/01/01', 'yyyy/mm/dd')    AND to_date ('2011/12/31', 'yyyy/mm/dd')
             GROUP BY v.vendor, v.vnames, d.calcbtot, (d.calcbtot / l.contamt), B.DATELET, d.call
             ORDER BY b.datelet, "Bidders Estimate";
    Vendor Id     Vendor Name     Letting Date     Call Number     Bidders Estimate      Enginers Estimate
    K0030              Interstate Improvement Inc     01/26/2007 00:00:00     009         $190,601.40         $209,895.00
    M110               Mankato Electric Inc     01/26/2007 00:00:00     015         $216,790.00         $213,000.00
    C470               Collisys     01/26/2007 00:00:00     015         $222,426.00         $213,000.00
    K110               Killmer Electric Co Inc     01/26/2007 00:00:00     015         $223,386.00         $213,000.00
    E110               Egan Company      01/26/2007 00:00:00     015         $225,740.00         $213,000.00
    G0034              Granite Ledge Electrical Contractors Inc     01/26/2007 00:00:00     015         $226,750.00         $213,000.00
    B500               Carl Bolander & Sons Co     01/26/2007 00:00:00     014         $227,227.00         $274,104.98
    M0069              Mattison Contractors Inc     01/26/2007 00:00:00     014         $231,340.03         $274,104.98
    T0041              Three Rivers Construction Inc     01/26/2007 00:00:00     014         $237,623.00         $274,104.98
    M110               Mankato Electric Inc     01/26/2007 00:00:00     012         $238,971.20         $253,700.00
    R290               Ridgedale Electric Inc     01/26/2007 00:00:00     015         $247,900.00         $213,000.00
    desired out put is this one.
    
    K0030              Interstate Improvement Inc     01/26/2007 00:00:00     009         $190,601.40         $209,895.00
    M110               Mankato Electric Inc     01/26/2007 00:00:00     015         $216,790.00         $213,000.00
    B500               Carl Bolander & Sons Co     01/26/2007 00:00:00     014         $227,227.00         $274,104.98

    Maybe this? I used the dense rank as if two bidders have bid even then both of them will be selected. If you just want one, replace it with row_number()

    SELECT * FROM (
    SELECT v.vendor "Vendor Id",
           INITCAP (v.vnames) "Vendor Name",
           B.DATELET "Letting Date",
           d.CALL "Call Number",
           TO_CHAR ( d.calcbtot, '$99,999,999.99') AS "Bidders Estimate",
           TO_CHAR ( SUM (q.qty * q.price), '$99,999,999.99')
             AS " Enginers Estimate",
           DENSE_RANK ()
           OVER (
             PARTITION BY v.vendor,
                          v.vnames,
                          d.calcbtot,
                          (d.calcbtot / l.contamt),
                          B.DATELET,
                          d.CALL
             ORDER BY TO_CHAR ( d.calcbtot, '$99,999,999.99') ASC
           )
             RN
      FROM letprop l,
           proposal P,
           propitem q,
           bidlet b,
           bidtabs c,
           itemlist i,
           vendor v,
           bidders d
     WHERE (l.letting = b.letting)
       AND b.letting = c.letting
       AND P.cspecyr = i.ispecyr
       AND q.prpitem = i.item
       AND P.contid = l.lcontid
       AND q.contid = P.contid
       AND c.vendor = l.avendor
       AND l.CALL = c.CALL
       AND q.lineflag = c.lineflag
       AND q.iplineno = c.iplineno
       AND l.letting = d.letting
       AND c.letting = l.letting
       AND c.CALL = d.CALL
       AND c.letting = d.letting
       AND v.vendor = d.vendor
       AND l.letstat = 'A'
       AND b.datelet BETWEEN TO_DATE ( '2007/01/01', 'yyyy/mm/dd') AND TO_DATE ( '2011/12/31', 'yyyy/mm/dd')
    GROUP BY v.vendor,
             v.vnames,
             d.calcbtot,
             (d.calcbtot / l.contamt),
             B.DATELET,
             d.CALL
    ORDER BY b.datelet, "Bidders Estimate") where rn=1
    

    G.

  • Question of value Popup Lov key (description of the poster, returns the key value) by default

    Hello

    I have a Popup Lov key (description of the poster, returns the key value) and I want a default value. It is based on a list (user name, id).
    I tried to put the id of the user logged on as default, but what I see on the screen in the field is the value of the id, not the username.
    How can I pass the user id and see the user name?

    Thank you.

    Oh! My bad, I thought you are talking about regualt lOVs not popups.

    OK, so that's what you need to do, I tried it and it worked for me:

    your popup LOV > default > type: body of the PLSQL function > and enter a query like:

    declare
    UID number.
    Start
    Select user_id from the uid of the user
    where UPPER (username) = UPPER(:APP_USER);

    This should show username and retune userid.

    Hope this helps,

    Sam
    Please give good answers by marking correct or useful.

  • How to add the full value of two buttons?

    How to add the full value of two buttons (any key) VI and display it in the output text box? I am attaching a sample program, but I know that his evil... Help, please

    Try this

  • values based on the following logic 'values after the first values of two '_' and before last '_' values '.

    Hi all

    I need the values according to below 2logics in a single select query using instring and substring

    1 values based on the following logic 'values after the first values of two '_' and before last '_' values '.

    2 values based on the following logic 'values after the first values of two '_' and before last'-'values '.

    EXM:

    Entry: ABCD_EFGH_IJKLM - NOPQ_XYZ output: IJKLM - NOPQ

    Entry:. ABCD_EFGH_IJKLM - NOPQ output:IJKLM

    Thank you.

    Check the following

    WITH DATA1 AS

    (SELECT "ABCD_EFGH_IJKLM - NOPQ_XYZ" double val)

    UNION ALL

    SELECT 'ABCD_EFGH_IJKLM - NOPQ' double val

    )

    SELECT SUBSTR (VAL, INSTR(VAL,'_',1,2) + 1, DECODE (BIGGER (INSTR (VAL, '_',-1, 1), INSTR(VAL,'-',-1,1)), INSTR (VAL,'-', - 1, 1), LENGTH (VAL) + 1, INSTR (VAL, '_',-1, 1))-(INSTR (VAL, '_', 1, 2) + 1))

    OF DATA1;

    Concerning

    Salim

  • : Nom_element and V ('ITEM_NAME') do not return the same value

    Hi all

    I'm developing a shared application process that is called by an AJAX request.

    For the pl/sql code, stored procedure validation e development support I moved the logic inside a database.
    So I have this situation:

    Application process

    ...
    : MYITEM: = wwv_flow.g_x01; -received setting of ajax call I want to put
    ...
    MY_FUNCTION();

    MyFunc

    ...
    v('MYITEM') - here I use value MyItem
    ...

    The problem is that when I call v ('MYITEM') the value I get is the previous and not one that I put with: MYITEM: = wwv_flow.g_x01;
    I have the same problem if I set the V ('MYITEM') inside the apex application process.

    I saw that it worked right if I use the following to set the value of the element in the application process:

    APEX_UTIL. SET_SESSION_STATE('P0_LST_DATA',:P0_LST_DATA);

    Is this a bug?
    I was expecting to get the value of the item: MONELEMENT and v ('MYITEM') are equivalent...

    Thank you
    Davide

    Davide,

    If you encode the block like that, you should get the results you expect:

    : P100_VAR1: = '1'. : P100_VAR1;
    : P100_TEST: =: P100_VAR1;

    The reason why this block does not give you what you expect:

    : P100_VAR1: = '1'. : P100_VAR1;
    : P100_TEST: = v ('P100_VAR1');

    ... is that v ('P100_VAR1') returns the current value of the item in the table of PL/SQL State session as it existed before the execution of the block. The assignment to the variable binding: P100_VAR1 has registered only a value in storage variable to bind the dynamic execution at this time and has not yet spread to session state, which is located at the end of the execution of the block. It's a little weird, we know.

    Andy,

    I figured that the: xxxx points have been settled during the loading of the page with what the source is...

    They contain the session state value and can be read or written in notation variable bind.

    However, they are updated only in the session when you send page...

    They are updated in session state when the particular block is completed and a commit is issued at this time there.

    In order to update a piece of code PL/SQL session state, you must use... apex_util.set_session_state.

    You must be careful to call it when scoring also bind variable to set the session state may cause one to deny the other. Using one method or the other should work very well.

    Scott

  • NotificationsDialog returns the same value for the two buttons

    I have a NotificationsDialog with two SystemUiButtons, now when I click on buttons and console the result they both return the number two, I don't really understand why.

    {NotificationDialog}
    ID: alertdialog
    Title: "Alarm" - + alarmTime
    body: Setting.get ("alarmCompletedMessage")
    repeat: true
                
                    
    buttons:]
    {SystemUiButton}
    label: "Stop".
    },
    {SystemUiButton}
    label: "Snooze."
    }
    ]
    onFinished: {}
    Console.log ('result' + result)
    Console.log (Error)
    }
    }

    Is there a better way to identify which button has been activated?

    Wish a little, she supported confirm and Cancel buttons, or SystemUIButtons have their own onClicked properties

    Thank you

    Use buttonSelection () instead of the result .label

  • PersistentStore.getPersistentObject returns the null value?

    I use a random key to retrieve a shape of the object PersistentStore

    persist is PersistentStore.getPersistentObject (KEY);.

    Works fine on the Simulator (OS 5), when I take the code signed to the device (BB OS 5.0 Bold 8900)

    For some reason, it returns null, without exception. Thereafter any API I inoke on PersistentStore / persist returns null without exception persist even when the null value.

    I don't know if it's one thing to eclipse debugger, but even if the debugger shows that objects are null. Controls null applied in the code seems to fail, what does code see these objects as non-null. Pheww! How is it possible.

    In this code still shows up as null, then safetyTable and orderedkeys. However, the value null check in the failure code.

    At a later stage in the code, when I try to access orderedkeys are null again! Are struggling with this problem for two days, all the pointers would be very comfortable.

                        persist = PersistentStore.getPersistentObject( KEY );
                        persistOrderedKeys = PersistentStore.getPersistentObject(KEY_ORDERED_KEYS);
                        safetyTable = (Hashtable)persist.getContents();
                        orderedKeys = (Vector)persistOrderedKeys.getContents();
                        if (safetyTable == null)
                        {
                            safetyTable = new Hashtable();
    
                            persist.setContents(safetyTable);
                            persist.commit();
                        }
    
                        if (orderedKeys==null)
                        {
                            orderedKeys=new Vector();
    
                            if (safetyTable.size()>0)
                            {
                                Enumeration addressKeys = safetyTable.keys();
                                while(addressKeys.hasMoreElements())
                                {
                                    orderedKeys.addElement((String)addressKeys.nextElement());
                                }
                            }
                            persistOrderedKeys.setContents(orderedKeys);
                            persistOrderedKeys.commit();
    
                        }
    

    "I don't know if it's one thing to eclipse debugger.

    I had problems of this kind when I don't have a level of operating system for the device I am debugging on.

  • Returns the time value zero calendar

    Hi, I write code with calendar that return the value zero for HOUR_OF_DAY and MINUTE when I run this code in Strom2(9550-5.0.0.334) below.

    Calendar calendar = Calendar.GetInstance ();
    Date date = new Date (this.arrivalTimeField.getDate ());
    calendar.setTime (date);
    Day int = calendar.get (Calendar.HOUR_OF_DAY);
    int minute = calendar.get (Calendar.MINUTE);

    So please help me for this problem and thanks in advanced

    I had a lot of problems like myself.  Invariably, I find that the bug is my code.  Usually, it is not difficult to find using the appropriate debug or SimpleDateFormat (because times are difficult to interpret, it is good to let the system do it for you!).  I suggest you do the same thing here.

    If you find that the system does not have it that you wait, then give us the details, for example, give us the long value that you provide to the calendar and the time you go out. You should be able to do it in two or three lines, just using the standard Java RIM (i.e. None of your classes).  You can also indicate the time zone that you are testing in.

  • HypGetMemberInformation in VBA. Does not return the property values.

    I tried to use HypGetMemberInformation in VBA to find the level of a member of the grid.

    I continued to get zeros even for members who are not level 0 ones.

    I went to test HypGetMemberInformation a test connected grid that has members in the first column (column A).

    I packed a test routine I ran after you connect the grid manually:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    ' Dim vtPropertyName As String

    Dim vtPropertyValue As Long

    Dim vtPropertyValueString As String

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation(ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    MsgBox _

    "The worksheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "."

    "The property string:" & vtPropertyValueString ".

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    The routine produces no result expected.

    Only of zeros.

    For all properties and all members.

    There must be something fundamentally wrong with my code.

    The function arguments are correct with regard to the name of journal, the member name and property name.

    Value of the property is always 0 and the property value string is always empty.

    Two property value arguments are expected to be passed by reference, so I should get some useful information.

    No error is generated so that the return error code is always 0.

    I guess that some prerequisite so that this function is not satisfied, but what is?

    Concerning

    Problem solved.

    The cause of all evil, as ususal, type mismatch...

    Arguments by reference:

    vtPropertyValue, vtPropertyValueString

    must be declared as variants but returned it to the values are ARRAYS...

    After the function call, to loop through these berries extract the real info returned!

    In the case of unique value of parameters such as the level of Member just use index 0, for example:

    vtPropertyValue (0)

    The corrected code is less with parts modified trhe parked in Green:

    Void TestMemberLevelFind()

    Dim line As Integer

    Dim index As Integer

    Dim MemberProperties Collection As

    Dim vtMemberName As String

    Dim vtPropertyName As Variant

    Dim vtPropertyValue As Variant

    Dim vtPropertyValueString As Variant

    Dim ErrorCode as long

    Dim ErrorMessage As String

    Define MemberProperties = new Collection

    MemberProperties.Add HYP_MI_NAME

    MemberProperties.Add HYP_MI_DIM

    MemberProperties.Add HYP_MI_LEVEL

    MemberProperties.Add HYP_MI_GENERATION

    MemberProperties.Add HYP_MI_PARENT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CHILD_MEMBER_NAME

    MemberProperties.Add HYP_MI_PREVIOUS_MEMBER_NAME

    MemberProperties.Add HYP_MI_NEXT_MEMBER_NAME

    MemberProperties.Add HYP_MI_CONSOLIDATION

    MemberProperties.Add HYP_MI_IS_TWO_PASS_CAL_MEMBER

    MemberProperties.Add HYP_MI_IS_EXPENSE_MEMBER

    MemberProperties.Add HYP_MI_CURRENCY_CONVERSION_TYPE

    MemberProperties.Add HYP_MI_CURRENCY_CATEGORY

    MemberProperties.Add HYP_MI_TIME_BALANCE_OPTION

    MemberProperties.Add HYP_MI_TIME_BALANCE_SKIP_OPTION

    MemberProperties.Add HYP_MI_SHARE_OPTION

    MemberProperties.Add HYP_MI_STORAGE_CATEGORY

    MemberProperties.Add HYP_MI_CHILD_COUNT

    MemberProperties.Add HYP_MI_ATTRIBUTED

    MemberProperties.Add HYP_MI_RELATIONAL_DESCENDANT_PRESENT

    MemberProperties.Add HYP_MI_RELATIONAL_PARTITION_ENABLED

    MemberProperties.Add HYP_MI_DEFAULT_ALIAS

    MemberProperties.Add HYP_MI_HIERARCHY_TYPE

    MemberProperties.Add HYP_MI_DIM_SOLVE_ORDER

    MemberProperties.Add HYP_MI_IS_DUPLICATE_NAME

    MemberProperties.Add HYP_MI_UNIQUE_NAME

    MemberProperties.Add HYP_MI_ORIGINAL_MEMBER

    MemberProperties.Add HYP_MI_IS_FLOW_TYPE

    MemberProperties.Add HYP_MI_AGGREGATE_LEVEL

    MemberProperties.Add HYP_MI_FORMAT_STRING

    MemberProperties.Add HYP_MI_ATTRIBUTE_DIMENSIONS

    MemberProperties.Add HYP_MI_ATTRIBUTE_MEMBERS

    MemberProperties.Add HYP_MI_ATTRIBUTE_TYPES

    MemberProperties.Add HYP_MI_ALIAS_NAMES

    MemberProperties.Add HYP_MI_ALIAS_TABLES

    MemberProperties.Add HYP_MI_FORMULA

    MemberProperties.Add HYP_MI_COMMENT

    MemberProperties.Add HYP_MI_LAST_FORMULA

    MemberProperties.Add HYP_MI_UDAS

    ' For line 8 to 83 =

    For row = 8-10

    vtMemberName = ThisWorkbook.ActiveSheet.Cells (rank 1). Value

    For each vtPropertyName in MemberProperties

    Code of error = HypGetMemberInformation (ThisWorkbook.ActiveSheet.Name, vtMemberName, vtPropertyName, vtPropertyValue, vtPropertyValueString)

    If ErrorCode = 0 Then

    If IsArray (vtPropertyValue) then

    For index = LBound (vtPropertyValue) to UBound (vtPropertyValue)

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property" & index & "value table:" & vtPropertyValue (index) & Chr (13) & _

    "Property" & index & "string array:" & vtPropertyValueString (index)

    Next

    On the other

    MsgBox _

    "The sheet name:" & ThisWorkbook.ActiveSheet.Name & Chr (13) & _ "."

    "Member name:" & vtMemberName & Chr (13) & _ "."

    "Property type:" & vtPropertyName & Chr (13) & _ "."

    "Property value:" & vtPropertyValue & Chr (13) & _ "

    "The property string:"& vtPropertyValueString"

    End If

    On the other

    ErrorMessage = GetReturnCodeMessage (ErrorCode)

    MsgBox "SmartView API function HypGetMemberInformation returned an error message:" & Chr (13) & ErrorMessage, vbOKOnly, PrivateConnectionDescription

    End If

    Next

    On the next row

    End Sub

    Fortunately we can someone find this useful.

    I wish documentation Oracle was a little clearer with more extensive code examples.

    Gustaw

  • getElementsByTagName("input").value); Returns the undefined value

    Help, please! The API DW getElementsByTagName() function returns no value.

    I'm defining the following form part of an extension of bar insert:

    (skip the usual of head)
    < body onLoad = "reportLabel ()" >
    < form >
    < table border = "0" height = "100" width = "100" >
    < tr valign = 'of basic">
    < td align = "left" nowrap >
    A label:
    < input type = "text" name = "label_field" value = "" id = "alabel" > "
    < table >
    < /tr >
    < /table >
    < / make >
    < / body >
    < / html >

    And the following JavaScript code:

    function reportLabel() {}

    Read the label of meta tag in the active document
    var dom = DW.getDocumentDOM (); get the dom of the current document
    var label = dom.getElementsByTagName ("meta");
    for (counter = 0; counter < label.length; counter ++)
    {
    If (label [meter] .name is 'Label')
    Alert (label [Counter]. Content); It works, the function reads the elements of document of the user very well

    But how to find the extension form input field so that I can pre-populate it with the label?

    Alert (document.getElementById("Alabel"). (Name) function undefined, grrr
    Alert (document. GetElementsByTagName("Input").value); returns undefined-> This is the function I want to use
    Alert (document.hasChildNodes ()); Returns true, then the DOM document is readable
    Alert (document.childNodes.Length); Returns 2
    Alert (document. Forms.Length); Returns the value 1
    Alert (document. Forms.childNodes.Length); has no childNodes property
    }
    }

    Thank you!
    -Scott

    getElementsByTagName() returns an ARRAY - so you can not use a point
    operator about it as you have. You have to do, for example:

    getElementsByTagName ('INPUT') [0] .value etc.

    fMichel brandt

    srowe3 wrote:
    > Please help! The API DW getElementsByTagName() function returns none
    > values.
    >
    > I'm defining the following form part of an extension of bar insert:
    >
    > (skipping the usual of head)
    >
    >


    >
    >
    >
    >
    >

    > A label:
    >
    >

    >

    >
    >
    >
    > And the following JavaScript code:
    >
    > function reportLabel() {}
    >
    > / / Read the meta tag tag in the active document
    > var dom = DW.getDocumentDOM (); get the dom of the current document
    > var label = dom.getElementsByTagName("meta");
    > for (counter = 0; counter)< label.length;="">
    > {
    > If (label [meter] .name == "Label")
    > / / alert (label [counter] content); It works, the function reads the
    > the user of the document elements very well
    >
    > / / But how to find the extension form input field so that I can
    > Pre-populate it with the label?
    >
    > / / alert (document.getElementById("alabel").name); function undefined,
    > grrr
    > / / alert (document.getElementsByTagName("input").value); Returns
    > undefined---> this is the function I want to use
    > / / alert (document.hasChildNodes ()); Returns true, then the DOM document is
    > readable
    > / / alert (document.childNodes.length); Returns 2
    > / / alert (document.forms.length); Returns the value 1
    > / / alert (document.forms.childNodes.length); has no childNodes property
    > }
    > }
    >
    > Thank you!
    > - Scott
    >
    >

  • Returns the key value in the product Page

    Hello

    I'm trying to return a key value in a page element after inserting a database record. I've seen several examples of how to do it on the forum. When I try, I get an error, PLS-00049: bad bind variable 'P116_PERSON_ID '. I call a procedure in a package. The page element is defined as source used: only when the current value in session state is zero. The source type is defined as: static Assignment(value equals source attribute). My procedure looks like:

    Start
    insert into persons (list of fields) values (value list) POLLING person_id IN: P116_PERSON_ID;
    end;

    The procedure works fine if I use something said instead of the page element: P116_PERSON_ID.

    I also tried v ('P116_PERSON_ID') and & P116_PERSON_ID, which did not work.

    What I am doing wrong? I need to convert my procedure to a function and the return key?

    Thanks, Elizabeth

    Elizabeth:

    You can try this

    declare
    l_person_id number;
    begin
    insert into people(list of fields) values(list of values) RETURNING person_id INTO L_PERSON_ID;
    apex_util.set_session_state ('P116_PERSON_ID', L_PERSON_ID);
    end;
    

    CITY

  • How to return the highest value in a column of numbers less than a given number

    I am a beginner using formulas in number.  I have an inventory in a Numbers spreadsheet (v3.6.2).  Inventory numbers are in a column.  I need to view the last number used or the highest number less than a given value.  In my case, it is 9000.

    I can put a cell to return MAX and it's cool, but I need to know the number < 9000, MAX.

    Hi JS.

    SEARCH is your friend here. One of the properties of the LOOKUP function is that it accepts a 'close-match', which is defined as the largest value less than or equal to the search value.

    Formulas:

    A2: LOOKUP (8999.9999999, D)

    B2: LOOKUP(9000,D)

    C2: MAX (D)

    Kind regards

    Barry

Maybe you are looking for

  • The Apple TV update allows playback of video tvOS 10.0 breaks

    Hi, y ' All,. I just updated my Apple TV (4th generation) to tvOS 10.0 and am is more able to playback of content from a library of the House Share (d) which has been encoded using the handbrake of HD sources. Previously, these videos played without

  • Why not download any apps?

    I recently got a new iPhone 6s more with no backup iCloud and it works very well. From later last night, however, none of my apps will download. The circles just icon and the circles forever without stopping. I have 64 GB so it is not a question of s

  • service free freebox

    Hello! I can't put my computer on the space reserved by FREE.FR (FREEBOX_NICLE_BC_F4CAE55582CD) or cable or wifi and yet this implementation is reserved to pour me and my (FREEBOX_NICOLE_CB_F4CAE55582CD) juice-only now it work fine and then suddenly

  • Install the DSO on platform SSD

    Oracle 11 g 2 on Linux.  Trying to learn how to implement ASM on a Cloud Computing environment.In my local Setup, that's how I did:A single disk for OSTwo disks for ASMA single disc for FRATOAL of 8 disks with RAID 1 put in place.Now, I intend to swi

  • The CPU suddenly very high low host CPU

    Hi allI was struggling with a particular host for awhile and am unable to access the root of the cause. What we have so far:Physics:1 host, 2 quadcores with HT technology (total 8 cores, 16 logic due to HT), 24 GB of ramHP Proliant DL380 G6Virtual:1