Topic
  • 3 replies
  • Latest Post - ‏2013-11-15T17:37:32Z by GregM_dxler
Estebell
Estebell
59 Posts

Pinned topic Creating a DBE for Attributes.

‏2013-10-24T13:41:15Z |

Hello,

I have a code with DB and DBE to display all modules of a Database. When a specific module is selected, it displays all its views in another frame of the DB.

In the same way, is it possible to display all attributes for a selected module ? Does a simmilar function as "DBE listView(DB box, int options, int width, int lines, string items[ ]) exist for attributes ?

 

  • Tony_Goodman
    Tony_Goodman
    271 Posts

    Re: Creating a DBE for Attributes.

    ‏2013-10-24T14:21:26Z  

    The listView() DBE can be used to display anything you wish, just pass it the attribute names.

    An example of a listView displaying attributes can be found at http://www.smartdxl.com/content/?p=757

  • lgudipati
    lgudipati
    1 Post

    Re: Creating a DBE for Attributes.

    ‏2013-11-15T16:18:03Z  

    The listView() DBE can be used to display anything you wish, just pass it the attribute names.

    An example of a listView displaying attributes can be found at http://www.smartdxl.com/content/?p=757

    When I tried this script from Smart dxl website, I get an error for this line below from the code. Can someone help with this?

    "resBuf += "\"" (string key attrValues)  "\" (" count ")\n""

    error msgs:

    -E- DXL: <Line:70> incorrect arguments for (&)

    -E- DXL: <Line:70> incorrect arguments for (+=)

    -E- DXL: <Line:70> undeclared variable (nbsp)

    -I- DXL: all done with 3 errors and 0 warnings

  • GregM_dxler
    GregM_dxler
    166 Posts

    Re: Creating a DBE for Attributes.

    ‏2013-11-15T17:37:32Z  
    • lgudipati
    • ‏2013-11-15T16:18:03Z

    When I tried this script from Smart dxl website, I get an error for this line below from the code. Can someone help with this?

    "resBuf += "\"" (string key attrValues) &nbsp;"\" (" count ")\n""

    error msgs:

    -E- DXL: <Line:70> incorrect arguments for (&)

    -E- DXL: <Line:70> incorrect arguments for (+=)

    -E- DXL: <Line:70> undeclared variable (nbsp)

    -I- DXL: all done with 3 errors and 0 warnings

    Hi,

    Delete the &nbsp;

    Copying and pasting sometimes doesn't work right.

    Hope this helps,

    Greg