Logo Search packages:      
Sourcecode: maxdb-7.5.00 version File versions

SAPDB_Bool StudioWeb_StoredQueryTree::makeTreeItem ( const Tools_DynamicUTF8String sPath,
const Tools_DynamicUTF8String sJSPath,
const Tools_DynamicUTF8String sFileName,
SAPDB_Int2  nLevel,
Tools_DynamicUTF8String sResponse 
) [private]

------------------------------------------------------------------------- function: makeTreeItem description: make files of webquery folder to tree items

parent.Navigations.items[0].nodes[0].addNode(new parent.node(\"SP\", \"waadmin\", \"Details\")); for lLevel = 0 add build JS addNode parent.Navigations.items[0].addNode(new parent.node(\"View Logfile\", \"waadmin.wa?Service=ShowLogFile\", \"Details\"));
\

arguments: [in] sPath, path of file [in] sJSPath, path for the java script [in] sFileName, name of file [in] lLevel, level in hierarchy [out] sResponse,code for tree item

return value: true if success --------------------------------------------------------------------------

Definition at line 356 of file StudioWeb_StoredQueryTree.cpp.

Referenced by readFirstLevelTree(), and readSubDir().

{
     
    

    char sBuf   [16];        
    Tools_DynamicUTF8String sCopyFileName;
    Tools_DynamicUTF8String sCopyPath;

    //init
    sResponse = sJSPath;
    if (nLevel > -1){

        sResponse += WQ_JS2;     
        sprintf (sBuf,"%d",nLevel);
        sResponse +=  (SAPDB_UTF8*)sBuf;        
        sResponse += (SAPDB_UTF8*) "].";
    }
    sResponse += WQ_JS3;                
    sCopyFileName = sFileName;
    escapeAsUTF8String(sCopyFileName);
    sResponse += sCopyFileName; 
    sResponse += (SAPDB_UTF8*) "\",\"";
    sCopyPath = sPath;
    escapeAsUTF8String(sCopyPath);
    sResponse +=  sCopyPath;
    if(sPath != (SAPDB_UTF8*) "/")  sResponse += (SAPDB_UTF8*) "/";
    sCopyFileName = sFileName;        
    escapeAsUTF8String(sCopyFileName);
    sResponse +=  sCopyFileName;
    sResponse += (SAPDB_UTF8*) "\",\"";
    sResponse += WQ_DSQL_WINDOW;
    sResponse += (SAPDB_UTF8*) "\"));\r\n";
    
    return SAPDB_TRUE;
}


Generated by  Doxygen 1.6.0   Back to index