Michal Riha

Forum Replies Created

Viewing 15 posts - 31 through 45 (of 45 total)
  • Author
    Posts
  • in reply to: Multivalue #12350
    Michal Riha
    Participant

    Hi Alexander,

    after one week testing – multiselect works perfect.

    We are encountered only one issue: When prefill autocomplete field (we use copy from parent (vlookup) to child item) – it is prefilled as item1; item2; item3 and it is not possible to work with this field – not possible to add new keyword because of “item1; item2; item3” – no items match your search…
    Is it possible to run some javascript “refresh” this prefilled autocomplete field – to avoid the need to select every keyword from “dropdown”?

    Michal

    in reply to: Side-by-side – shading odd columns #12348
    Michal Riha
    Participant

    Hi Alexander,

    thanks, it works (for every “table” cell) I suppose that shade odd colums must be done via Field CSS..

    Michal

    in reply to: Side-by-side – shading odd columns #12265
    Michal Riha
    Participant

    Hi Alexander,

    is there any simple way how to do it in display form?
    I consider that there is only one possibility – use field CSS (for each individual field)…

    The aim is to show display form in the same visual style as edit form = like “form” – values are in a frame (like in screenshot attached).

    Michal

    Michal Riha
    Participant

    Hi Alexander,
    automatically create folder would be nice, but it is not critical (I can create folders before manually).

    I am using onprem 2013 (foundation).

    Michal

    Michal Riha
    Participant

    I solved it. For child document library – delete document. It is not possible delete via item ID but you need exact document url.
    Here it is – JS in textarea:

    
    
    function init_delete_vLookuChild(a,item){
    	return "<span style='cursor:pointer' onclick='deleteItem2(\""+ item.get_item('FileDirRef') + "/"+ item.get_item('FileLeafRef') + "\")'>Smazat</span>";
    }
    
    function deleteItem2(URL,fin){
    	var r = confirm("Smazat přílohu:" + URL);
    	if (r == false) return;
    	var clientContext;
    	var oWebsite;
    	var fileUrl=URL;
    	clientContext = new SP.ClientContext.get_current();
    	oWebsite = clientContext.get_web();
    	clientContext.load(oWebsite);
    	clientContext.executeQueryAsync(
    		function () 
    		{
    			this.fileToDelete = oWebsite.getFileByServerRelativeUrl(fileUrl);
    			this.fileToDelete.deleteObject();
    			clientContext.executeQueryAsync(
    				Function.createDelegate(this, successHandler),
    				Function.createDelegate(this, errorHandler)
    			);
    			 }, errorHandler);
    	function successHandler() {
          $("#vLookupManualRefresh_vLookupOpravneni").click();
          $("#vLookupManualRefresh_vLookupUcet").click();
          $("#vLookupManualRefresh_vLookupExistence").click();
          $("#vLookupManualRefresh_vLookupDramaturgickyPlan").click();
          $("#vLookupManualRefresh_vLookupLiterarniUkazka").click();
          $("#vLookupManualRefresh_vLookupPodrobnyPopis").click();
          $("#vLookupManualRefresh_vLookupZivotopis").click();
          $("#vLookupManualRefresh_vLookupProspekty").click();
          $("#vLookupManualRefresh_vLookupPrehledAkci").click();
          $("#vLookupManualRefresh_vLookupScenar").click();
          $("#vLookupManualRefresh_vLookupVyrocniZpravy").click();
    	}
    	function errorHandler()   {alert("Error"); }
    }

    I have several vLookups in parent list and I only do not know, how to call “refresh” for particular vLookup – according to vLookup in which I use delete function. Therefore I call vLookupManualRefresh for all of them.
    Alexander, do you have some idea, how to refresh only current vLookup?
    Michal

    Michal Riha
    Participant

    Hi,
    I have no error, but nothing is deleted.
    I try change listName “New Task(s)” to my name of document library but with no success.

    var dRes = spjs.utility.deleteItem({"listName":"New Task(s)","id":id});

    Michal

    Michal Riha
    Participant

    I suppose that document library folder is only part of url.
    And when uploading document – just not upload to /DocumentLibrary but to /DocumentLibrary/Folder.. “Folder” is known in advance (it is parent ID)

    Current solution “Show upload button…” is not usable for me.

    Is it possible to use this (part of) code?: https://msdn.microsoft.com/en-us/library/office/dn292553.aspx

    Michal

    in reply to: Side-by-side – shading odd columns #11987
    Michal Riha
    Participant

    Solved:
    .sbs_tdIndex_2 input, .sbs_tdIndex_4 input, .sbs_tdIndex_6 input, .sbs_tdIndex_8 input { background-color:#fbe4e5 !important; }

    Michal

    in reply to: Error HRESULT: 0x80131904 #7803
    Michal Riha
    Participant

    Behaves same.
    I try to remove options from vLookup configuration, try to pull back “ID” field in the ViewFields, but the same.
    When user is SC admin – all works fine.
    🙁

    in reply to: Error HRESULT: 0x80131904 #7796
    Michal Riha
    Participant

    Here it is.
    Thanks
    Michal

    in reply to: Manually set the location of the configuration list #7380
    Michal Riha
    Participant

    Hi Alexander,

    thanks for good news!
    Workaround works!

    Thanks and best regards

    Michal

    in reply to: Manually set the location of the configuration list #7378
    Michal Riha
    Participant

    https://contoso.com/PWA/scripts/DFFS/DFFS_backend.aspx?targetList={0e30b85c-b447-4a0f-a229-9e284a36fd48}&targetListBaseUrl=/PWA/Training – BSI2 – WE&formId=/pwa/training – bsi2 – we/lists/riskregister/newform.aspx&formType=1&Source=/PWA/Training%20-%20BSI2%20-%20WE/Lists/riskregister/NewForm.aspx

    site url is: /PWA/Training – BSI2 – WE

    Michal

    in reply to: Manually set the location of the configuration list #7368
    Michal Riha
    Participant

    Hi Alexander,

    thanks for reply.

    It seems, that configuration you described is quite similar. But do not work for me. Maybe I missed something.

    All the scripts are located here: /PWA/scripts (PWA=site collection / scripts=document library)
    Under PWA is created subsite “template”: /PWA/template
    DFFS configuration is stored here: /PWA/Lists/SPJSDynamicFormsForSharePoint

    “DFFS_backend_CEWP.html”:

    var dffs_configListBaseUrl = "/PWA";

    In the “DFFS_frontend_CEWP.html” I have these variables:

    var dffs_configListBaseUrl = "/PWA";
    var spjs_dffs_backend = "/PWA/scripts/DFFS/DFFS_backend.aspx";

    (scripts=document library, DFFS=folder)

    This setup store configuration for “template” subsite as:
    /lists/riskregister/newform.aspx

    But for other sites – at the same url level (/PWA/NewSite):
    /PWA/NewSite/lists/riskregister/newform.aspx

    I use different names than you, but location and configuration (as I hope) is basically the same.

    What is wrong?

    Thanks

    Michal

    in reply to: spjs.dffs.data.lcidToDateFormat #7341
    Michal Riha
    Participant

    Solved – caused by wrong rule.
    Adding a new entry to lcidToDateFormat for LCID 1029 with no result, but corect wrong rule solved this issue.
    Michal

    in reply to: Document sets? #6604
    Michal Riha
    Participant

    Yes your solution works perfect in list or document library.
    Document set seems it has same structure (DispForm, EditForm.aspx..), it is possible to add webparts to page, but it does not work.
    Michal

Viewing 15 posts - 31 through 45 (of 45 total)