assoccre.ssc

来自「PowerBuilder8.0开发分散式应用所帶的例程」· SSC 代码 · 共 37 行

SSC
37
字号
<!--SCRIPT

  var webRoot = site.GetRootDocument();
  import ( webRoot.location + '/system/utils/strtable.ssc' );
  
  /* Create an association between a document and a connection */
  
  var assocList = site.GetConnectionAssociationList();
  var text;
  var i;
  var path;
  var thedoc;
  
  text = "<!--SCRIPT\r\n";
  text += IntlStr.scriptGenerated;
  text += "function LoadAssociations() {\r\n";
  text += "webroot = site.GetRootDocument();\r\n";
  text += "siteName = webroot.location;\r\n";
  
  for( i in assocList ) {
    text += 'site.LoadConnectionAssociation( siteName + "' + assocList[i].path;
    text += '", "' + assocList[i].connection + '" );\r\n';
  }
  
  text += '}\r\n--' + '>\r\n';
  
  path = document.location + '/' + 'associat.ssc';
  
  thedoc = site.GetDocument( path );
  
  if( thedoc == null ) {
    site.CreateDocument( path, 'script', '', text );
  } else {
    thedoc.source = text;
  }
-->

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?