Alpha DevCon 2018
Results 1 to 8 of 8

Thread: Problem when renaming a FormView Form ID

  1. #1
    Member
    Real Name
    Bill Hess
    Join Date
    Jul 2014
    Posts
    17

    Default Problem when renaming a FormView Form ID

    I want to rename the form IDs for my FormViews to better identify them. (My app is quickly growing and I can't tell the FORMVIEW_1 from FORMVIEW_12.)
    I renamed a formview from "FORMVIEW_1" to "DEMOGRAPHICSFORM" When I did this, I got script errors when doing a Working Preview.
    I downloaded the most recent patch and got the same results.
    I tried doing an Edit | Bulk Operation | Recalculate UX Components ...but that didn't help.

    I did a "diff" on the code that was generated and this is what I found:
    Before
    #DLG1\.V\.R1\.FORMVIEW_1 {}
    After
    nothing

    Before
    DLG1_DlgObj._forms['FORMVIEW_1'] = {... (lots of code supporting the formview)
    After
    DLG1_DlgObj._forms['DEMOGRAPHICSFORM'] = {}; (no code!)

    In the meantime I am not renaming form views (Patient: "It hurts when I do this." Doctor: "Don't do that!") ;)
    Please advise,
    Thanks,
    BH

  2. #2
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    1,871

    Default Re: Problem when renaming a FormView Form ID

    I would bet you can use the space following FORMVIEW after the underbar, as in
    FORMVIEW_DEMOGRAPHICS_FORM
    FORMVIEW_BOMBSQUAD_FORM

    just guessing, but seems like it would work!
    NWCOPRO Nuisance Wildlife Control Software-My Application: http://www.nwcopro.com "I am not discouraged, because every wrong attempt discarded is another step forward."

  3. #3
    Member
    Real Name
    Bill Hess
    Join Date
    Jul 2014
    Posts
    17

    Default Re: Problem when renaming a FormView Form ID

    That didn't do it. Even if I just add a character onto the end of the Form View name (e.g., change FORMVIEW_1 to FORMVIEW_1A it causes the same thing.
    I think this is Beta issues.

  4. #4
    "Certified" Alphaholic CharlesParker's Avatar
    Real Name
    Charles Parker
    Join Date
    Dec 2012
    Location
    New Orleans, LA
    Posts
    1,871

    Default Re: Problem when renaming a FormView Form ID

    Well, I did say I was guessing ----- you must be right, it's probably a BETA issue!
    NWCOPRO Nuisance Wildlife Control Software-My Application: http://www.nwcopro.com "I am not discouraged, because every wrong attempt discarded is another step forward."

  5. #5
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    391

    Default Re: Problem when renaming a FormView Form ID

    Quote Originally Posted by billdhess View Post
    I want to rename the form IDs for my FormViews to better identify them. (My app is quickly growing and I can't tell the FORMVIEW_1 from FORMVIEW_12.)
    I renamed a formview from "FORMVIEW_1" to "DEMOGRAPHICSFORM" When I did this, I got script errors when doing a Working Preview.
    I downloaded the most recent patch and got the same results.
    I tried doing an Edit | Bulk Operation | Recalculate UX Components ...but that didn't help.

    I did a "diff" on the code that was generated and this is what I found:
    Before
    #DLG1\.V\.R1\.FORMVIEW_1 {}
    After
    nothing

    Before
    DLG1_DlgObj._forms['FORMVIEW_1'] = {... (lots of code supporting the formview)
    After
    DLG1_DlgObj._forms['DEMOGRAPHICSFORM'] = {}; (no code!)

    In the meantime I am not renaming form views (Patient: "It hurts when I do this." Doctor: "Don't do that!") ;)
    Please advise,
    Thanks,
    BH
    Hi Bill,

    I checked things out in today's build (3075-4537.) As of this morning this is the behavior I'm seeing:

    1. Rename FormView
    2. Run Working Preview - nothing renders.
    3. Open FormView Properties and save (click the "OK" button.)
    4. Run Working Preview - everything behaves as expected (as far as I can tell...)


    This probably goes without saying, but make sure you also remember to update any Javascript that references the FormView directly, such as in save/cancel buttons and code that may reference the form control in list control events.

    So - short term - if you rename your FormView ID, remember to open the form's properties and click the "OK" button. This should update most things. Any javascript you've written or controls that reference the FormView may need to be manually updated.

    I have sent a note on to the development team. Thanks!
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

  6. #6
    Member
    Real Name
    Bill Hess
    Join Date
    Jul 2014
    Posts
    17

    Default Re: Problem when renaming a FormView Form ID

    That works for me.
    BTW - what is the appropriate method for submitting suggestions / enhancement requests for Beta?
    Thanks,
    B

  7. #7
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    391

    Default Re: Problem when renaming a FormView Form ID

    Quote Originally Posted by billdhess View Post
    That works for me.
    BTW - what is the appropriate method for submitting suggestions / enhancement requests for Beta?
    Thanks,
    B
    Hi Bill!

    You can post requests right here on this forum! I am checking in daily and send on any requests or issues straight to the dev team.

    Additionally, you can also submit questions/concerns/requests to tabletbeta [at] alphasoftware.com.

    Thanks!
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

  8. #8
    Alpha Software Employee Beta Spark's Avatar
    Real Name
    Sarah Mitchell
    Join Date
    Jul 2015
    Posts
    391

    Default Re: Problem when renaming a FormView Form ID

    Hi All!

    I just wanted to let you know this is fixed in today's build, Build 3077. You can download the patch or full installer at http://www.alphasoftware.com/tablet/beta/install.asp.

    Thanks!
    Sarah Mitchell

    Looking for answers? Try our documentation.
    If you can't find something, let us know!

Similar Threads

  1. Introduction to the FormView Control
    By Beta Spark in forum Tablet-Optimized Form Capabilities Beta
    Replies: 1
    Last Post: 08-14-2015, 02:31 PM
  2. ViewBox and FormView progress
    By edsicard in forum Mobile & Browser Applications
    Replies: 0
    Last Post: 02-07-2015, 02:57 PM
  3. Renaming a form...
    By ppittman in forum Alpha Five Version 8
    Replies: 4
    Last Post: 03-20-2007, 12:42 PM
  4. Renaming a database problem
    By Digitaled in forum Alpha Five Version 7
    Replies: 4
    Last Post: 01-09-2007, 06:44 PM
  5. deleted record shows up in formview
    By Jos Schaars in forum Alpha Five Version 6
    Replies: 27
    Last Post: 08-10-2004, 03:15 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
  •