⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 isc_tools.js

📁 javascript 很酷的类库
💻 JS
📖 第 1 页 / 共 3 页
字号:
,isc.A.titleHoverHTML=function(_1){if(isc.jsdoc.hasData()){var _2=isc.jsdoc.hoverHTML(this.dataSource,_1.name);if(!_2){if(this.showMethods){var _3=isc.jsdoc.docItemForDSMethod(this.dataSource,_1.name);if(_3)_2=isc.MethodFormatter.hoverHTML(_3)}else{var _4=isc.jsdoc.docItemForDSField(this.dataSource,_1.name);if(_4)_2=isc.AttrFormatter.hoverHTML(_4)}}if(_2)return _2}return"<nobr><code><b>"+_1.name+"</b></code> (no doc available)</nobr>"});isc.B._maxIndex=isc.C+9;isc.defineClass("GroupItem","SectionItem");isc.A=isc.GroupItem.getPrototype();isc.A.sectionHeaderClass="SectionHeader";isc.A=isc.SectionHeader.getPrototype();isc.A.icon="[SKIN]SectionHeader/opener.png";isc.defineClass("Wizard","VLayout");isc.A=isc.Wizard.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.stepInstructionsDefaults={_constructor:"Label",contents:"Instructions",padding:10,height:20};isc.A.stepPaneDefaults={_constructor:"VLayout",padding:10};isc.A.showStepIndicator=false;isc.A.stepIndicatorDefaults={_constructor:"HLayout",height:22,layoutMargin:0,layoutLeftMargin:10,membersMargin:2};isc.A.stepIndicatorItems=[];isc.A.stepButtonDefaults={_constructor:"Img",layoutAlign:"center",showRollOver:false,height:18,width:18};isc.A.stepSeparatorDefaults={_constructor:"Img",layoutAlign:"center",height:16,width:16,src:"[SKIN]/TreeGrid/opener_closed.gif"};isc.A.navButtonsDefaults={_constructor:"ToolStrip",height:22,layoutMargin:5,membersMargin:10};isc.A.navButtonsItems=["previousButton","nextButton","finishButton","cancelButton"];isc.A.previousButtonDefaults={_constructor:"Button",layoutAlign:"center",title:"Previous",click:"this.creator.previousStep()",visibility:"hidden"};isc.A.nextButtonDefaults={_constructor:"Button",layoutAlign:"center",title:"Next",click:"this.creator.nextStep()"};isc.A.finishButtonDefaults={_constructor:"Button",layoutAlign:"center",title:"Finish",click:"this.creator.finished()",visibility:"hidden"};isc.A.cancelButtonDefaults={_constructor:"Button",layoutAlign:"center",title:"Cancel",click:"this.creator.cancel()"};isc.A.autoChildParentMap={nextButton:"navButtons",previousButton:"navButtons",finishButton:"navButtons"};isc.A.$46g="_stepButton_";isc.B.push(isc.A.initWidget=function(){this.Super("initWidget");this.createSteps();this.addAutoChild("stepInstructions");this.addAutoChild("stepPane");this.addAutoChild("navButtons");this.addAutoChildren(this.navButtonsItems,this.navButtons);if(this.showStepIndicator){this.addAutoChild("stepIndicator");for(var i=0;i<this.steps.length;i++){var _2=this.steps[i].stepName,_3={src:_2};var _4=this.createAutoChild("stepButton",_3);this.stepIndicator.addMember(_4);this.steps[i].$46h=_4;if(i+1<this.steps.length){this.stepIndicator.addMember(this.createAutoChild("stepSeparator"))}}this.navButtons.addMember(this.stepIndicator,0)}this.goToStep(0,true)},isc.A.draw=function(_1){var _2=this.Super("draw",arguments);this.updateButtons();return _2},isc.A.createSteps=function(_1){if(!_1)_1=this.steps;if(!_1)return;if(!isc.isAn.Array(_1))_1=[_1];for(var i=0;i<_1.length;i++){_1[i]=isc.WizardStep.create(_1[i],{wizard:this})}},isc.A.getStep=function(_1){return isc.Class.getArrayItem(_1,this.steps)},isc.A.getCurrentStep=function(){return this.getStep(this.currentStepNum)},isc.A.getCurrentStepIndex=function(){return this.currentStepNum},isc.A.getStepIndex=function(_1){return isc.Class.getArrayItemIndex(_1,this.steps)},isc.A.getStepPane=function(_1){return this.getStep(_1).pane},isc.A.goToStep=function(_1,_2){if(!_2){if(!this.getCurrentStep().exitStep(_1))return;this.getStepPane(this.currentStepNum).hide()}var _3=this.getStep(_1);_3.enterStep(this.currentStepNum);this.currentStepNum=this.getStepIndex(_3);var _4=this.getStepPane(_1);if(_3.instructions)this.stepInstructions.setContents(_3.instructions);else this.stepInstructions.hide();this.stepPane.addMember(_4,0);_4.show();this.updateButtons()},isc.A.go=function(_1){var _2=this.getStepIndex(this.currentStepNum);_2+=_1;this.goToStep(this.getStep(_2))},isc.A.nextStep=function(){var _1=this.getStep(this.currentStepNum);if(_1.hasNextStep())this.goToStep(_1.getNextStep());else this.go(1)},isc.A.previousStep=function(){var _1=this.getStep(this.currentStepNum);if(_1.hasPreviousStep())this.goToStep(_1.getPreviousStep());else this.go(-1)},isc.A.finished=function(){this.resetWizard()},isc.A.cancel=function(){this.resetWizard()},isc.A.updateButtons=function(){var _1=this.getStepIndex(this.currentStepNum),_2=this.getCurrentStep();if(this.stepIndicator){for(var i=0;i<this.steps.length;i++){var _4=this.steps[i].$46h;if(_1>i){_4.setState("")}else if(_1==i){_4.setState("Down")}else{_4.setState("Disabled")}}}if(_1==0||this.forwardOnly||!_2.hasPreviousStep())this.previousButton.hide();else this.previousButton.show();if(!_2.hasNextStep()||_1==this.steps.length-1){this.nextButton.hide();this.finishButton.show()}else{this.nextButton.show();this.finishButton.hide()}},isc.A.resetWizard=function(){this.goToStep(0)});isc.B._maxIndex=isc.C+16;isc.defineClass("WizardStep").addMethods({enterStep:function(_1){},exitStep:function(_1){return true},hasNextStep:function(){return this.wizard.getStepIndex(this.ID)<this.wizard.steps.length-1},getNextStep:function(){return this.wizard.getStepIndex(this.ID)+1},hasPreviousStep:function(){return this.wizard.getStepIndex(this.ID)>0},getPreviousStep:function(){return this.wizard.getStepIndex(this.ID)-1}});isc.DataSource.create({ID:"isc_XMethodsServices",dataURL:"shortServiceListing.xml",recordName:"service",recordXPath:"/default:inspection/default:service",fields:[{name:"abstract",title:"Description"},{name:"xMethodsPage",title:"Site",type:"link",width:50,valueXPath:".//wsilxmethods:serviceDetailPage/@location"},{name:"wsdlURL",title:"WSDL",type:"link",width:50,valueXPath:"default:description[@referencedNamespace='http://schemas.xmlsoap.org/wsdl/']/@location"}]});isc.defineClass("DSWizardBase","VLayout");isc.A=isc.DSWizardBase.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.autoChildParentMap={nextButton:"navToolbar",previousButton:"navToolbar",finishButton:"navToolbar"};isc.B.push(isc.A.initWidget=function(){this.Super("initWidget");this.addAutoChild("stepInstructions",{contents:"Instructions",padding:4,height:20},isc.Label);this.addAutoChild("navToolbar",{height:22,layoutMargin:10,membersMargin:10},isc.HLayout);this.addAutoChild("previousButton",{title:"< Previous",click:"this.creator.previousPage()",visibility:"hidden"},isc.Button);this.navToolbar.addMember(isc.LayoutSpacer.create());this.addAutoChild("nextButton",{title:"Next >",click:"this.creator.nextPage()",disabled:true,setDisabled:function(_2){var _1=this.Super('setDisabled',arguments);this.creator.$46i(_2)}},isc.Button);this.addAutoChild("finishButton",{title:"Finish",click:"this.creator.finish()",visibility:"hidden"},isc.Button);this.goToPage(0,true)},isc.A.getPage=function(_1){return isc.Class.getArrayItem(_1,this.pages)},isc.A.getCurrentPage=function(){return this.getPage(this.currentPageNum)},isc.A.getPageIndex=function(_1){return isc.Class.getArrayItemIndex(_1,this.pages)},isc.A.getPageView=function(_1,_2){var _3=this.getPage(_1),_4=_3.ID;if(!_4)return _3.view;if(_2){var _5="enter"+_4;if(this[_5])this[_5](_3,_4);else this.enterPage(_3,_4)}this.logWarn("for page: "+this.echoLeaf(_1)+" got pageId: "+_4+(_2&&this[_5]?" called enter function: "+_5:"")+", view is: "+_3.view);return _3.view},isc.A.enterPage=function(_1,_2){},isc.A.goToPage=function(_1,_2){if(!_2){this.getPageView(this.currentPageNum).hide()}var _3=this.getPage(_1);this.currentPageNum=this.getPageIndex(_3);var _4=this.getPageView(_1,true);if(_3.instructions)this.stepInstructions.setContents(_3.instructions);else this.stepInstructions.hide();this.addMember(_4,1);_4.show();this.updateButtons()},isc.A.go=function(_1){var _2=this.getPageIndex(this.currentPageNum);_2+=_1;this.goToPage(this.getPage(_2))},isc.A.nextPage=function(){var _1=this.getPage(this.currentPageNum);if(_1.nextPage)this.goToPage(_1.nextPage);else this.go(1)},isc.A.previousPage=function(){var _1=this.getPage(this.currentPageNum);if(_1.previousPage)this.goToPage(_1.previousPage);else this.go(-1)},isc.A.finish=function(){this.hide();this.resetWizard()},isc.A.updateButtons=function(){var _1=this.getPageIndex(this.currentPageNum);if(_1==0)this.previousButton.hide();else this.previousButton.show();if(this.getPage(_1).endPage||_1==this.pages.length-1){this.nextButton.hide();this.finishButton.show()}else{this.nextButton.setDisabled(this.nextButtonIsDisabled(_1));this.nextButton.show();this.finishButton.hide()}},isc.A.$46i=function(_1){if(!this.$46j)this.$46j=[];this.$46j[this.currentPageNum]=!_1},isc.A.nextButtonIsDisabled=function(_1){return this.$46j?!this.$46j[_1]:true},isc.A.resetWizard=function(){delete this.$46j;this.goToPage(0)});isc.B._maxIndex=isc.C+15;isc.defineClass("DSWizard","DSWizardBase");isc.A=isc.DSWizard.getPrototype();isc.B=isc._allFuncs;isc.C=isc.B._maxIndex;isc.D=isc._funcClasses;isc.D[isc.C]=isc.A.Class;isc.A.pages=[{ID:"StartPage",instructions:"Select the source of data to bind to:"},{ID:"PickOperationPage",instructions:"Select a public Web Service, or enter a WSDL file URL.  Then select"+" the operation to invoke"},{ID:"CallServicePage",instructions:"Use the provided form to invoke the web service and obtain a sample"+" result, then select an approriate element set for list binding"},{ID:"BindingPage",instructions:"Below is a default binding to a ListGrid.  Use the field editor to "+"customize the binding",endPage:true},{ID:"SFPickEntityPage",instructions:"Choose an object type you would like to use in SmartClient applications"},{ID:"SFDonePage",instructions:"Below is an example of a grid bound to the chosen SForce Object",endPage:true},{ID:"KapowPickRobotPage",instructions:"Choose the Kapow Robot(s) you would like to use in SmartClient applications"}];isc.A.servicePickerDefaults={recordClick:function(_1,_2,_3){var _4=this.getRawCellValue(_2,_3,this.getFieldNum("wsdlURL"));this.logWarn("wsdlURL is: "+_4);this.creator.fetchWSDL(_4)}};isc.A.operationPickerDefaults={recordClick:function(_1,_2,_3){var _4=this.getRawCellValue(_2,_3,this.getFieldNum("name"));this.creator.wsdlDoc=this.data.document;this.creator.operationName=_4;this.creator.nextButton.enable()},alternateRecordStyles:true};isc.B.push(isc.A.enterStartPage=function(_1){if(!this.dsTypePicker){this.createDSTypePicker();_1.view=this.dsTypePicker}this.nextButton.setDisabled(this.dsTypePicker.getValue("dsType")==null)},isc.A.createDSTypePicker=function(){this.dsTypePicker=this.createAutoChild("dsTypePicker",{layoutAlign:"center",width:350,numCols:1,fields:[{name:"dsType",showTitle:false,type:"radioGroup",valueMap:{"sforce":"SalesForce.com Object","kapow":"Kapow Robot","rss":"RSS Feed","simpleXML":"XML service or flat file (non-WSDL)","json":"JSON service or flat file","newHibernate":"New SQL Table (via Hibernate)","existingHibernate":"Existing SQL Table (via Hibernate)","newSQL":"New SQL Table","existingSQL":"Existing SQL Table"},change:"form.creator.nextButton.setDisabled(value == null)"}]},isc.DynamicForm)},isc.A.nextPage=function(){var _1=this.dsTypePicker.getValue("dsType");if(this.currentPageNum==0){if(_1=="sforce"){var _2=this,_3=isc.WebService.get("urn:partner.soap.sforce.com");_3.ensureLoggedIn(function(){_2.goToPage("SFPickEntityPage")},true);return}else if(_1=="kapow"){var _2=this;if(!this.robotServerPicker)this.robotServerPicker=isc.RobotServerPicker.create({robotServerSelected:function(){_2.goToPage("KapowPickRobotPage")}});this.robotServerPicker.show();return}else if(_1!="webService"){var _4,_5;if(_1.contains("Hibernate")){_5="Each field you enter below corresponds to a database column "+"of the same name.  The table name will be the same as the DataSource ID by default, or you "+"may enter a Table Name below.  Hibernate database settings are in "+"[webroot]/WEB-INF/classes/hibernate.cfg.xml"_4={dataFormat:"iscServer",serverType:"hibernate"}}else if(_1.contains("SQL")){_5="Each field you enter below corresponds to a database column "+"of the same name.  The table name will be the same as the DataSource ID by default, or you "+"may enter a Table Name below.  By default, the default DataBase shown in the Admin Console "+"will be used, or you may enter \"dbName\" below.";_4={dataFormat:"iscServer",serverType:"sql"}}else if(_1=="simpleXML"){_5="For \"dataURL\", enter a URL which will return XML data.<P>"+"For \"recordXPath\", enter an XPath that will select the XML tags you wish to use as rows. "+"For example, if the tag you want is named \"Person\", a recordXPath of \"//Person\" will "+"work for most simple XML formats.<P>"+"Enter fields named after the subelements and attributes of the tag used for rows.  Click "+"the \"More\" button to see more field properties and documentation, particularly \"valueXPath\"";_4={dataFormat:"xml"}}else if(_1=="json"){_5="For \"dataURL\", enter a URL which will return JSON data.<P>"+"For \"recordXPath\", enter an XPath to an Array of Objects in the JSON data, then enter fields for each property of those Objects which you want to display, and its type.<P>"+"Click the \"More\" button to see more field properties and documentation, particularly \"valueXPath\"";_4={dataFormat:"json"}}else if(_1=="rss"){_5="Enter the URL of the RSS feed as \"dataURL\" below, then add or remove fields.";_4={dataFormat:"xml",recordXPath:"//default:item|//item",fields:[{name:"title",title:"Title"},{name:"link",title:"Story",type:"link"},{name:"description",title:"Description"},{name:"pubDate",title:"Published"}]}}this.showDSEditor(_4,true,_5);return}}this.Super("nextPage")},isc.A.enterPickOperationPage=function(_1){var _2=this.dsTypePicker.getValue("dsType");if(!this.servicePicker)this.setUpPickOperationPage(_1);this.nextButton.setDisabled(this.operationPicker.getSelectedRecord()==null)},isc.A.setUpPickOperationPage=function(_1){var _2=this.createAutoChild("pickOperationPage",{visibilityMode:"multiple"},isc.SectionStack);_1.view=_2;this.wsdlURLForm=this.createAutoChild("wsdlURLForm",{numCols:3,colWidths:[100,"*",50],fields:[{name:"url",title:"WSDL URL",width:"*"},{type:"button",title:"Fetch",startRow:false,width:"*",click:function(){this.form.creator.fetchWSDL(this.form.getValue("url"))}}]},isc.DynamicForm);this.servicePicker=this.createAutoChild("servicePicker",{dataSource:"isc_XMethodsServices"},isc.ListGrid);this.servicePicker.fetchData();this.operationPicker=this.createAutoChild("operationPicker",{dataSource:isc.DataSource.create({recordXPath:"default:portType/default:operation",fields:[{name:"name",title:"Name",width:"150"},{name:"documentation",title:"Description"}]})},isc.ListGrid);_2.addSection({title:"Services",autoShow:true,items:[this.wsdlURLForm,this.servicePicker]});_2.addSection({title:"Operations",autoShow:true,items:[this.operationPicker]})},isc.A.fetchWSDL=function(_1){this.wsdlURL=_1;if(_1!=null){if(isc.isA.ResultSet(this.operationPicker.data)){this.operationPicker.data.invalidateCache()}this.operationPicker.fetchData(null,null,{dataURL:_1})}},isc.A.enterCallServicePage=function(_1){var _2=this.wsdlURL;isc.xml.loadWSDL(_2,this.getID()+".$46k(service)");if(this.serviceInput!=null)return;var _3=this.createAutoChild("callServicePage",{visibilityMode:"multiple"},isc.SectionStack);_1.view=_3;this.serviceInput=this.createAutoChild("serviceInput",{},isc.DynamicForm);var _4=this.createAutoChild("callServiceButton",{title:"Call Service",click:"this.creator.callService()",resizeable:false},isc.Button);_3.addSection({title:"Service Inputs",autoShow:true,items:[this.serviceInput,_4]});this.requestEditor=this.createAutoChild("requestEditor",{height:250,fields:[{name:"useEditedMessage",title:"Use Edited Message",type:"checkbox",defaultValue:false},{name:"requestBody",showTitle:false,type:"textArea",width:"*",height:"*",colSpan:"*"}]},isc.DynamicForm);_3.addSection({title:"Request Editor",items:[this.requestEditor]});this.serviceOutput=this.createAutoChild("serviceOutput",{showHeader:false,wrapCells:true,fixedRecordHeights:false},isc.DOMGrid);_3.addSection({title:"Service Output",autoShow:true,items:[this.serviceOutput]});this.expressionForm=this.createAutoChild("expressionForm",{numCols:4,colWidths:[120,150,"*",50],items:[{name:"selectBy",title:"Select Records By",width:"*",valueMap:{tagName:"Tag Name",xpath:"XPath Expression"},defaultValue:"xpath"},{name:"expression",showTitle:false,width:"*"},{type:"button",title:"Select",width:"*",startRow:false,click:"form.creator.selectNodes()"}]},isc.DynamicForm);this.selectedNodesView=this.createAutoChild("selectedNodesView",{showHeader:false,showRoot:false,wrapCells:true,fixedRecordHeights:false},isc.DOMGrid);_3.addSection({title:"Select Elements",autoShow:true,items:[this.expressionForm,this.selectedNodesView]})},isc.A.$46k=function(_1){this.service=_1;this.serviceInput.setDataSource(this.service.getInputDS(this.operationName))},isc.A.callService=function(){if(!this.serviceInput.validate())return;var _1=this.serviceInput.dataSource,_2=this.serviceInput.getValuesAsCriteria(),_3=this.serviceInputs=_1.getServiceInputs({data:_2});if(this.requestEditor){if(this.requestEditor.getValue("useEditedMessage")){var _4=this.requestEditor.getValue("requestBody");_3.requestBody=_4}else{this.requestEditor.setValue("requestBody",_3.requestBody)}}_3.callback=this.getID()+".serviceOutput.setRootElement(xmlDoc.documentElement)";isc.xml.getXMLResponse(_3)},isc.A.selectNodes=function(){var _1=this.expressionForm,_2=this.serviceOutput.rootElement,_3;this.selectBy=_1.getValue("selectBy");if(this.selectBy=="xpath"){this.recordName=null;this.recordXPath=_1.getValue("expression");_3=isc.xml.selectNodes(_2,this.recordXPath)}else{this.recordXPath=null;this.recordName=_1.getValue("expression");var _4=_2.getElementsByTagName(this.recordName);_3=[];for(var i=0;i<_4.length;i++)_3.add(_4[i])}this.selectedNodesView.setRootElement({childNodes:_3});this.selectedNodes=_3;this.nextButton.enable()},isc.A.enterBindingPage=function(_1){var _2=this.selectedNodesView.data,_3=_2.get(0).$9b,_4=_3.getAttribute("xsi:type")||_3.tagName;if(_4.contains(":"))_4=_4.substring(_4.indexOf(":")+1);var _5=this.outputDS=isc.DS.get(_4);this.logWarn("nodeType is: "+_4+", ds is: "+_5);this.boundGrid=this.createAutoChild("boundGrid",{dataSource:_5,data:this.selectedNodes,alternateRecordStyles:true},isc.ListGrid)_1.view=this.boundGrid},isc.A.enterKapowPickRobotPage=function(_1){if(!this.kapowRobotList){this.kapowRobotList=this.createAutoChild("kapowRobotList",{selectionChanged:function(){var _2=this.getSelectedRecord()!=null;this.creator.nextButton.setDisabled(!_2)}},isc.ListGrid);_1.view=this.kapowRobotList}isc.XJSONDataSource.create({ID:"kapowRobotListDS",callbackParam:"json.callback",dataURL:robotServerURL+"/ISCVBListAllRobots?format=JSON",fields:[{name:"name",title:"Robot"},{name:"type",title:"Type"}],transformResponse:function(_6){var _3=[];for(var i=0;i<_6.data.length;i++){var _5=_6.data[i];if(_5.name.startsWith("ISCVB"))continue;_3.add(_5)}_6.data=_3;_6.totalRows=_6.data.length;_6.endRow=_6.data.length-1;return _6}});this.kapowRobotList.setDataSource(kapowRobotListDS);this.kapowRobotList.fetchData()},isc.A.kapowFinish=function(){var _1=this.kapowRobotList.getSelection();for(var i=0;i<_1.length;i++){var _3=_1[i];isc.XMLTools.loadXML(robotServerURL+"/admin/"+_3.name+".robot",this.getID()+".kapowRobotLoaded(xmlDoc,'"+_3.name+"','"+_3.type+"')")}},isc.A.saveDataSource=function(_1){var _2=_1.getClassName();var _3;if(isc.DS.isRegistered(_2)){_3=isc.DS.get(_2)}else{_3=isc.DS.get("DataSource");_1._constructor=_2}var _4=_3.xmlSerialize(_1);this.logWarn("saving DS with XML: "+_4);isc.DMI.callBuiltin({methodName:"saveSharedXML",arguments:["DS",_1.ID,_4]})},isc.A.kapowRobotLoaded=function(_1,_2,_3){this.logInfo("loaded robot: "+_2);var _4=isc.xml.selectNodes(_1,"//property[@name='startModelObjects']/element[@class='kapow.robot.common.domain.Entity']/property");_4=isc.xml.toJS(_4);var _5=[];for(var i=0;i<_4.length;i++){var _7=_4[i];if(!_7.xmlTextContent)continue;_5.add({name:_7.xmlTextContent,type:this.fieldTypeForJavaClass(_7["class"])})}this.logWarn("Robot: "+_2+" - derived outputFields: "+isc.echoAll(_5));var _8;if(_5.length){_8=isc.DataSource.create({ID:_2+"DS",callbackParam:"json.callback",dataURL:robotServerURL+"/"+_2+"?format=JSON",noAutoFetch:true,fields:_5,dataFormat:"json",dataTransport:"scriptInclude"})}else if(_3=="rss"){var _8=isc.DataSource.create({ID:_2+"DS",dataURL:robotServerURL+"/"+_2,recordXPath:"//default:item",noAutoFetch:true,fields:[{name:"title"},{name:"link",type:"link"},{name:"description"},{name:"created"},{name:"category"},{name:"email"},{name:"name"},{name:"rights"}]})}if(_8){window.addDataSource(_8);this.saveDataSource(_8)}var _9=isc.xml.selectNodes(_1,"//property[@name='queryParameters']/element[@class='kapow.robot.common.domain.Entity']/property");_9=isc.xml.toJS(_9);var _10=[];for(var i=0;i<_9.length;i++){var _7=_9[i];if(!_7.xmlTextContent)continue;if(_7.name&&_7.name.startsWith("value"))continue;_10.add({name:_7.xmlTextContent,type:this.fieldTypeForJavaClass(_7["class"])})}this.logWarn("Robot: "+_2+" - derived inputFields: "+isc.echoAll(_10));if(_10.length){var _11=isc.DataSource.create({ID:_2+"InputDS",type:"generic",fields:_10});window.addDataSource(_11);this.saveDataSource(_11)}window.wizardWindow.hide();this.resetWizard()},isc.A.fieldTypeForJavaClass=function(_1){switch(_1){case"java.lang.Boolean":return"boolean";case"java.util.Date":return"date";case"java.lang.Byte":case"java.lang.Short":case"java.lang.Integer":case"java.lang.Long":case"java.lang.BigInteger":return"integer";case"java.lang.Float":case"java.lang.Double":case"java.lang.BigDecimal":return"float";default:return"text"}},isc.A.enterSFPickEntityPage=function(_1){this.sfService=isc.WebService.get("urn:partner.soap.sforce.com");if(!this.sfEntityList){this.sfEntityList=this.createAutoChild("sfEntityList",{fields:[{name:"objectType",title:"Object Type"}],selectionChanged:function(){var _2=this.getSelectedRecord()!=null;this.creator.nextButton.setDisabled(!_2)}},isc.ListGrid);_1.view=this.sfEntityList}this.sfService.getEntityList({target:this,methodName:"getEntityListReply"})},isc.A.getEntityListReply=function(_1){var _2=[];for(var i=0;i<_1.length;i++){_2.add({objectType:_1[i]})}this.sfEntityList.setData(_2)},isc.A.enterSFDonePage=function(_1){var _2=this.sfEntityList.getSelectedRecord().objectType;if(!this.sfGrid){this.sfGrid=this.createAutoChild("sfGrid",{},isc.ListGrid)}this.sfService.getEntity(_2,{target:this,methodName:"showSFBoundGrid"});_1.view=this.sfGrid},isc.A.showSFBoundGrid=function(_1){this.sfGrid.setDataSource(_1);this.sfGrid.fetchData()},isc.A.sfFinish=function(){this.showDSEditor(this.sfGrid.dataSource,true,"You can remove fields below to prevent them from being shown, "+"and alter user-visible titles.")}

⌨️ 快捷键说明

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