Alpha Video Training
Results 1 to 3 of 3

Thread: "Object Inheritance"

  1. #1
    Member SNusa's Avatar
    Real Name
    Robert Tupper
    Join Date
    Dec 2007
    Location
    Northeast, USA
    Posts
    893

    Default "Object Property Inheritance"

    Recently, (while uncovering a browse related bug) I ran into the following scenario:

    You can set object properties on a "stand-alone" browse (created in the CP browse tab), and the properties (USUALLY) "propagate" into the form where the browse object is placed. ~ And when editing the form, some of these (SAME) settings are available on the browse objects properties.

    I noticed that when certain object properties are set at the browse level, this information is "respected" once the object has been embedded into the form, when it is "run."

    However: Upon viewing the object's properties (on the form itself) many of the same browse object option settings are available for editing/changing. But, the setting options shown do not "reflect" the objects actual settings. (So to see the actual properties settings of the browse object, you have to edit & view the browse itself from the CP browse tab.)

    Seems to me these object properties should:

    1. Propagate (and show the current settings correctly since they are inherited) correctly from the browse itself to the browse object on the form, AND......
    2. Either not be editable (in which case the properties would have to be set on the browse object itself from the CP, OR be editable (so that the settings can be overridden).

    This is not the case whatsoever. There is no consistency or pattern that I can see.

    The other associated problem here is: After you make changes to many of the properties (when you're editing the browse object properties from within the form) the settings are l"ost." (Change a setting, and save. Then go back and look for the setting. It was not saved.) ~ One would think that if the setting is editable, any changes should should be saved. (If you try to change the browse object's settings from the form object on the form itself, the settings "do not take.")

    Note: In other parts of the a5 program (such as when dealing with tables/sets), "object inheritance" is respected.... When you make changes at the set level, the changes do "propagate" to the table itself. (This is what happens when you're editing field rules via a set. Although in this instance, I believe it's not actually "propagation." ~ You're actually making changes to the table settings through the set.)
    Last edited by SNusa; 01-20-2013 at 04:03 PM.
    Robert T. ~ "I enjoy manipulating data... just not my data."
    It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
    RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

  2. #2
    VAR
    Real Name
    Martin W. Cole
    Join Date
    Apr 2000
    Location
    Terrell, Texas (near Dallas)
    Posts
    5,956

    Default Re: "Object Inheritance"

    In general, I would forget about "propogation," per se. I don't think yoiu will ever derive any absolutely reliable formula. Rather the browse will by default reflect the current state of the from, and vice versa, unless otherwise set in the form or browse itself. Also opening a companion browse based on the form's set versus the form's parent table will make a difference.
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    martin_w_cole@msn.com

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

  3. #3
    Member SNusa's Avatar
    Real Name
    Robert Tupper
    Join Date
    Dec 2007
    Location
    Northeast, USA
    Posts
    893

    Default Re: "Object Inheritance"

    Thank you Martin.
    Robert T. ~ "I enjoy manipulating data... just not my data."
    It's all about the "framework." (I suppose an "a5-induced" hard drive crash is now in order?)
    RELOADED: My current posting activity here merely represents a "Momentary Lapse Of Reason."

Similar Threads

  1. Why is the "e" object called "e" ?
    By Fulltimer in forum Application Server Version 11 - Web/Browser Applications
    Replies: 11
    Last Post: 10-10-2012, 07:17 PM
  2. Why does <OBJECT>.CHILD_GET() appends "¶" to value returned? FYI:alltrim() fixes this
    By SNusa in forum Alpha Five Version 10 - Desktop Applications
    Replies: 26
    Last Post: 02-29-2012, 01:13 PM
  3. error - "a5.js" and "'this._keys.length' is null or not an object"
    By eritovs in forum Application Server Version 10 - Web/Browser Applications
    Replies: 3
    Last Post: 10-13-2011, 10:12 PM
  4. Replies: 1
    Last Post: 04-02-2009, 05:56 PM
  5. "Add" and "Save" buttons don't stay on "Self" page
    By Scholin in forum Application Server Version 8
    Replies: 2
    Last Post: 02-05-2008, 08:50 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
  •