Славка перед карантином
This commit is contained in:
@ -385,13 +385,13 @@ class SRec
|
||||
//we pass the id to the object filter prop_id - the name of the filter
|
||||
setFilterObject(TypeName, prop_id, id)
|
||||
{
|
||||
node=findFirstNodeOnAttribute(this.nodeMetadata,'column','n',prop_id);
|
||||
let node=findFirstNodeOnAttribute(this.nodeMetadata,'column','n',prop_id);
|
||||
if(node!=null)
|
||||
{
|
||||
let name=node.getAttribute("FieldCaption");
|
||||
getCdata(node).nodeValue=id;
|
||||
//we request data from the server to fill in the comments on the record id
|
||||
prop=document.getElementById('filter_'+this.uid+'_'+prop_id);
|
||||
let prop=document.getElementById('filter_'+this.uid+'_'+prop_id);
|
||||
if(prop!=null) prop.value=id;
|
||||
//request comment on the id of the record from the server
|
||||
if(this.request.callServer(ScriptName,'<?xml version="1.0" encoding="utf-8"?><metadata fn="6"><type n="'+TypeName+'" c="'+name+'" pn="'+prop_id+'" fn="'+name+'"><objects-list><filter><column n="id"><![CDATA['+id+']]></column></filter></objects-list></type></metadata>',true))
|
||||
@ -487,7 +487,8 @@ class SRec
|
||||
setMetadata(node)
|
||||
{
|
||||
this.nodeMetadata=node;
|
||||
|
||||
this.setXMLSettings(this.f_Settings); //Appending settings to nodeMetadata
|
||||
|
||||
//Create GUI filter
|
||||
let td,tr,td1,td2;
|
||||
let nodeFilter=null;
|
||||
@ -507,9 +508,7 @@ class SRec
|
||||
this.nodeMetadataObjList=findNode(nodeType, "objects-list");
|
||||
if(this.win!=null) this.win.setWidth(this.nodeMetadataObjList.getAttribute("width"));
|
||||
nodeFilter=findNodeOnPath(nodeType,"objects-list/filter");
|
||||
|
||||
//Appending settings to nodeMetadata
|
||||
this.setXMLSettings(this.f_Settings);
|
||||
|
||||
|
||||
//let id=-1;
|
||||
//After loading the metadata, we request the data by sending an XML filter.
|
||||
@ -853,13 +852,14 @@ class SRec
|
||||
input.setAttribute("value","");
|
||||
newCell1.appendChild(input);
|
||||
//A hidden field where data is stored (you can make it stored in XML).
|
||||
hidden = document.createElement('hidden');
|
||||
let hidden = document.createElement('input');
|
||||
hidden.setAttribute("type", "hidden");
|
||||
hidden.setAttribute("id",'filter_'+this.uid+'_'+columnNode.getAttribute("n"));
|
||||
//hidden.setAttribute("value",value)
|
||||
hidden.value=value;
|
||||
newCell1.appendChild(hidden);
|
||||
|
||||
button = document.createElement('input');
|
||||
let button = document.createElement('input');
|
||||
button.setAttribute("type","button");
|
||||
button.setAttribute("value","...");
|
||||
button.style.cssText="width:30px; height:100%;margin: 0px; padding: 0px;";
|
||||
|
||||
Reference in New Issue
Block a user