Results 1 to 10 of 11

Thread: cWebDynamicObjectContainer

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Colombia
    Posts
    1,811

    Default cWebDynamicObjectContainer

    Hi all

    I'm doing a little dynamic object test. Everything works fine until the moment of execution, when loading the view the error below appears.
    I have faithfully followed the DEMO and the manual.
    In INDEX.HTML I added <script src = "Custom \ WebDynamicObjectContainer.js"> </script>
    and I have copied the Custom folder in AppHtml with the WebDynamicObjectContainer.js file.

    I appreciate your suggestions.

    Code:
     Object oSqlContainer is a cWebDynamicObjectContainer
               Set piColumnSpan to 19
               Set piColumnIndex to 10  
               
               Procedure Load
                   Send OnClick of oWebBttnCarga
               End_Procedure
               
     End_Object
         
           Object oWebBttnCarga is a cWebButton
               Set piColumnSpan to 4
               Set psCaption to "button"
               Set piColumnIndex to 25
           
               Procedure OnClick                 
                   String sName
                   Handle hoObj
                   Integer iColumn iValue
                   
                   Send ResetContainer of oSqlContainer
                   
                   Get CreateDynamicObject of oSqlContainer (RefClass(cWebList)) "oWebList" "" to hoObj
                    Send InitDynamicProp of hoObj "piColumnSpan" 9 
                    
                    Get CreateDynamicObject of oSqlContainer (RefClass(cWebColumn)) "oWebColumn0" "oWebList" to hoObj
                    Send InitDynamicProp of hoObj "psCaption" "Planet" 
                    Send InitDynamicProp of hoObj "piWidth" 70 
                        
                    Get CreateDynamicObject of oSqlContainer (RefClass(cWebColumn)) "oWebColumn1" "oWebList" to hoObj    
                    Send InitDynamicProp of hoObj "psCaption" "Distance from Earth" 
                    Send InitDynamicProp of hoObj "piWidth" 30   
                    Send Activate of oSqlContainer
               End_Procedure
           End_Object
    Edgar
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	Captura1.PNG 
Views:	37 
Size:	9.7 KB 
ID:	14118  

Posting Permissions

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