Alpha Video Training
Results 1 to 6 of 6

Thread: Property not found e.dataSubmitted.Main subelement not found.

  1. #1
    Member
    Real Name
    Laura-Kae Redway
    Join Date
    Mar 2015
    Location
    Jamaica W.I.
    Posts
    67

    Default Property not found e.dataSubmitted.Main subelement not found.

    Hi Guys,

    Having a problem here in my dialogValidate() event.
    I have a UX component with several controls (a form to fill out), and I submit this to a database.
    I have in my dialogValidate() event, code to capitalize fields and so on. It worked previously, however now with, no changes to this component I get the following error:

    "Error executing DialogValidate() event handler: command: e.dataSubmitted.Main_Address_Line_1 = w_upper(lower(e.dataSubmitted.Main.Address Property not found e.dataSubmitted.Main subelement not found. "

    My dialogValidate() is as below. Please tell me if you spot any errors that I may have missed.

    Code:
    function dialogValidate as p (e as p)
    
    e.dataSubmitted.Main_Applicant_First_Name = w_upper(lower(e.dataSubmitted.Main_Applicant_First_Name))
    e.dataSubmitted.Main_Applicant_Middle_Name = w_upper(lower(e.dataSubmitted.Main_Applicant_Middle_Name))
    e.dataSubmitted.Main_Applicant_Last_Name = w_upper(lower(e.dataSubmitted.Main_Applicant_Last_Name))
    e.dataSubmitted.Main_Address_Line_1 = w_upper(lower(e.dataSubmitted.Main.Address_Line_1))
    e.dataSubmitted.Main_Address_Line_2 = w_upper(lower(e.dataSubmitted.Main.Address_Line_2))
    e.dataSubmitted.Main_Address_Line_3 = w_upper(lower(e.dataSubmitted.Main.Address_Line_3))
    
    'Repeating Section Requires a Loop
    dim i as n
    dim count as n
    count = e.dataSubmitted.qty.size()
    'Loop over each entry in the array of data that was submitted
    for i = 1 to count
    e.dataSubmitted.qty[i]= w_upper(lower(e.dataSubmitted.qty[i]))
    next i
    'End of repeating sections loop
    
    e.dataSubmitted.Beneficiaries_Agent_First_Name = w_upper(lower(e.dataSubmitted.Beneficiaries_Agent_First_Name))
    e.dataSubmitted.Beneficiaries_Agent_Middle_Name = w_upper(lower(e.dataSubmitted.Beneficiaries_Agent_Middle_Name))
    e.dataSubmitted.Beneficiaries_Agent_Last_Name = w_upper(lower(e.dataSubmitted.Beneficiaries_Agent_Last_Name))
    e.dataSubmitted.Payment_Details = upper(e.dataSubmitted.Payment_Details)
    e.dataSubmitted.Source_of_Funds = upper(e.dataSubmitted.Source_of_Funds)
    
    end function

  2. #2
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Property not found e.dataSubmitted.Main subelement not found.

    Is this a desktop issue?

    Do you mean to have a period instead of an underscore in these lines?

    e.dataSubmitted.Main_Address_Line_1 = w_upper(lower(e.dataSubmitted.Main.Address_Line_1))
    e.dataSubmitted.Main_Address_Line_2 = w_upper(lower(e.dataSubmitted.Main.Address_Line_2))
    e.dataSubmitted.Main_Address_Line_3 = w_upper(lower(e.dataSubmitted.Main.Address_Line_3))
    There can be only one.

  3. #3
    Member
    Real Name
    Laura-Kae Redway
    Join Date
    Mar 2015
    Location
    Jamaica W.I.
    Posts
    67

    Default Re: Property not found e.dataSubmitted.Main subelement not found.

    Stan,

    Wow do I feel silly. I Indeed had periods where I should have had under scores. Fixed that problem.
    Could you say if anything is the matter with this line?
    Code:
    e.dataSubmitted.qty[i]= w_upper(lower(e.dataSubmitted.qty[i]))
    getting an error saying similar
    "Error executing DialogValidate() event handler: command: count = e.dataSubmitted.qty.size() Property not found e.dataSubmitted.qty subelement not found. "

  4. #4
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Property not found e.dataSubmitted.Main subelement not found.

    Not really.

    this looks like where it should error if there isn't a qty field

    count = e.dataSubmitted.qty.size()

    But if qty is a number then it seems strange to uppercase the first "letter"

    w_upper(lower(e.dataSubmitted.qty[i]))
    There can be only one.

  5. #5
    Member
    Real Name
    Laura-Kae Redway
    Join Date
    Mar 2015
    Location
    Jamaica W.I.
    Posts
    67

    Default Re: Property not found e.dataSubmitted.Main subelement not found.

    Thanks for your help Stan,

    That line was intended to count the number of rows in the repeating section, then apply the uppercase coding to each row.
    I realize know I need to use .rowCount to do this.

  6. #6
    "Certified" Alphaholic Stan Mathews's Avatar
    Real Name
    Stan Mathews
    Join Date
    Apr 2000
    Location
    Bowling Green, KY
    Posts
    25,119

    Default Re: Property not found e.dataSubmitted.Main subelement not found.

    Glad I could help.

    Interesting name/spelling - Laura-Kae.
    There can be only one.

Similar Threads

  1. Property not found ... p.___workToDoObj subelement not found
    By CarlMPearson in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 01-21-2015, 06:28 AM
  2. Fatal error running a5_ajax_grid(): Property not found rtc.rowData[] subelement not f
    By gamma in forum Application Server Version 11 - Web/Browser Applications
    Replies: 2
    Last Post: 01-25-2013, 03:02 AM
  3. Property not found param[] not found
    By mgerthe in forum Application Server Version 8
    Replies: 3
    Last Post: 03-04-2008, 12:41 PM
  4. Custrom Controlled field: Property not found / Subelement not found
    By meanrat in forum Web Application Server v7
    Replies: 2
    Last Post: 02-26-2007, 01:50 PM
  5. Property Not Found / subelement not found
    By Rich Hartnett in forum Web Application Server v7
    Replies: 2
    Last Post: 10-13-2006, 09:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •