Forum Replies Created
-
AuthorPosts
-
No, I just “killed” previous version. Maybe It is not absoutely clear, but handling “undefined” in the snippet solved problem. Thank You very much.
Ivan
Hi,
thank You for reply. If I switch from Source A to Source B, It works properly. if I switch from Source B to Source A, there is error: “TypeError: Cannot read property “thisListFields” of undefined”. After pressing OK, cascade is rebuilt. I have two different “Filed_name_of_first_thisListFields_column”.Thank You
Ivan
Attachments:
Hi,
Thank You for reply. I have two rules and if I change field value, it switch between function CCDD_One or CCDD_Two. There is different amount of fields in functions.CCDD_One(); //Default Init CCDD_One function CCDD_One(){ spjs.casc.init( { "manualMode":true, "dataSource":"", "lookupList":"listName_List1", "lookupListBaseUrl":"/sites/prj/pmo", "lookupListFields":["field1_List1","field2_List1","field3_List1"], "thisListFields":["field1","field2","field3"], "dropDownDefaultvalue":"", "filter":"", "hideEmptyDropdowns":false, "autoselectSingleOption":true, "clearInvalidSelection":false, "addOwnValue":false, "addOwnValueMouseover":"", "cancelOwnValueMouseover":"", "sideBySide":true, "debug":false, } ); } function CCDD_Two(){ spjs.casc.init( { "manualMode":true, "dataSource":"", "lookupList":"listName_List2", "lookupListBaseUrl":"/sites/prj/pmo", "lookupListFields":["field1_List2","field2_List2","field3_List2","field4_List2","field5_List2"], "thisListFields":["field1","field2","field3","field4","field5"], "dropDownDefaultvalue":"", "filter":"", "hideEmptyDropdowns":false, "autoselectSingleOption":true, "clearInvalidSelection":false, "addOwnValue":false, "addOwnValueMouseover":"", "cancelOwnValueMouseover":"", "sideBySide":true, "debug":false, } ); }
Thank You
Ivan
Hi,
You are right. Field {Author} works of Course. Sorry, it was my mistake in email account configuration.
Sincerelly,
Ivan
Hi,
I have a lot of document libraries, and I need to traverse documents and edit custom fields in EditForms. Can I get GUID of the current list view as variable?var res = spjs.utility.queryItems({ "listName": _spPageContextInfo.pageListId, "viewName": "{8E016900-8594-45D0-8837-4AFD952C3375}", "viewFields": ["ID"] });
Thank You.
Ivan
Hi,
is it possible to get current item author email? I would like to use it as an email recipient in e-mail template for use with DFFS rule.
Thank You,
Ivan
August 31, 2017 at 06:41 in reply to: Display a calculated column display value in edit form? #17993Hi,
Thank You very much. You are right, wrapping the function call helped.
var qRes = spjs.utility.getItemByID( { "listName":_spPageContextInfo.pageListId, "id":spjs.dffs.data.thisItemID, "viewFields":["TestFormula"] } ); setTimeout(function(){ $("span.promenna").html(qRes["TestFormula"].split(";#")[1]); },500);
Ivan
- This reply was modified 7 years, 2 months ago by Zaruba.Ivan.
August 28, 2017 at 11:30 in reply to: Display a calculated column display value in edit form? #17969Hi Alexander,
your code worked perfectly in previous version of DFFS, but not in my current version DFFS Backend v4.4.3.10|CSS version: 4.37 / |spjs-utility version: 1.309.html:
<h2>Value: <span class="promenna" /></h2>
Custom JS:
var qRes = spjs.utility.getItemByID( { "listName":_spPageContextInfo.pageListId, "id":spjs.dffs.data.thisItemID, "viewFields":["PodilEUx"] } ); $("span.promenna").html(qRes["PodilEUx"].split(";#")[1]);
I have tried replace jQuery instead of $, but no success.
Am I wrong? Any idea?
Thank You,
Ivan- This reply was modified 7 years, 2 months ago by Zaruba.Ivan.
Hi Alexander,
excellent work, that’s what I (and users of course) dreamed about.
Thank you!
Ivan
Hi,
can You help me please, how to get more calculated fields (numbers) and format them to keep only two decimals?
Is it possible to add extra button to reload Editform with recalculated fields?Thanks Ivan
Hi Alexander,
thank You, but there is a still NaN error.
It works when I replaced lines that look up the value – like this:a = Number(parseFloat($("#dffs_NumField1 input").val().replace(/\s/g, "").replace(",", "."))); b = Number(parseFloat($("#dffs_NumField2 input").val().replace(/\s/g, "").replace(",", "."))); c = Number(parseFloat($("#dffs_NumField3 input").val().replace(/\s/g, "").replace(",", ".")));
Ivan
- This reply was modified 8 years, 7 months ago by Zaruba.Ivan.
- This reply was modified 8 years, 7 months ago by Zaruba.Ivan.
Hi Alexander,
excellent code. Thank You. It helped me a lot. How can I avoid error alert in EditForm, when it reloads original values with thousands separator?
Ivan Zaruba
-
AuthorPosts