Forum Replies Created
-
AuthorPosts
-
lzuhuoParticipant
I confirm. Line 7
I insert manually on head, inspect html page with F12. Not in a html file.
This server is local. You can access by TV or Any Desk.lzuhuoParticipantI inserted on head manually the css content on style tag and did works fine.
I think that it’s a problem asynchronism.lzuhuoParticipantSame result with latest version and DFFS_2017-07-10 version
lzuhuoParticipantSame result
lzuhuoParticipantI used v2 installer.
Attachments:
lzuhuoParticipantI Installed SPJS on SP2019 recently. but I checked css files of backend and frontend was not loaded correctly.
Attachments:
lzuhuoParticipantNo. I published an C# Api on Sharepoint IIS to retrieve data from another database as JSON. Much better and faster then using External List Connection.
lzuhuoParticipantLet’s Go
I tryed to use filterREST but is not exacly what I need.
For example:
Full Name: Elizeu Eslon Marinho Oliveira.
When the length of the user’s string typed is more then 5, I use an Ajax API resquest to return a JSON object and insert in “obj_aluno” in this part:spjs.ac.data.dataObj[argObj.applyTo] = {
“done”: true,
“items”: obj_aluno
};Until this part, the AC Solution works fine. But when the user type in the same field, a diferent name, I intend call another Ajax API request, with another object, and I cant update the spjs.ac.data.dataObj without kill the AC function to reload new options.
lzuhuoParticipantHi Alex.
This is really useful for my projects.
So, I wonder know, if is it possible update items array with new data while the user typing. For example: I have an ajax request API to return more then 45.000 users, but I want to filter using part of user full name on query. The objective is return less results then 45.000.lzuhuoParticipantI find out. The “spjs.casc.init” function must be inside ajax, as it is asynchronous. Has a delay on get API’s reponse.
My code
$.ajax({ url:"/api/sp/rfids/permitidos", success: function(json) { spjs.casc.init( { "manualMode":true, "dataSource":json, "lookupList":"", "lookupListBaseUrl":"", "lookupListFields":["NM_FUNCIONARIO"], "thisListFields":["DS_REDE"], "dropDownDefaultvalue":"Select...", "filter":"", "hideEmptyDropdowns":false, "autoselectSingleOption":true, "clearInvalidSelection":false, "addOwnValue":false, "addOwnValueMouseover":"", "cancelOwnValueMouseover":"", "sideBySide":true, "debug":false } ); }, error: function(e) { console.log(e); } });
lzuhuoParticipantGood morning Alex.
I would like to use an API as a dataSourceArray in cascading-dropdown solution.
My API returns an Array, but when I try to use it, this is my console log in attachment.
This is my codevar dataSourceArray; $.ajax({ url:"/api/sp/rfids/permitidos", success: function(json) { // Do stuff with data dataSourceArray = json; console.log(dataSourceArray); }, error: function(e) { console.log(e); } }); spjs.casc.init( { "manualMode":true, "dataSource":dataSourceArray, "lookupList":"", "lookupListBaseUrl":"", "lookupListFields":["Title"], "thisListFields":["DS_REDE"], "dropDownDefaultvalue":"Select...", "filter":"", "hideEmptyDropdowns":false, "autoselectSingleOption":true, "clearInvalidSelection":false, "addOwnValue":false, "addOwnValueMouseover":"", "cancelOwnValueMouseover":"", "sideBySide":true, "debug":false } );
Attachments:
lzuhuoParticipantThanks a lot Alex
Worked perfectlzuhuoParticipantThank you very much.
lzuhuoParticipantHi Alex.
I saw your update on https://spjsblog.com/dffs/dffs-change-log/#SPJS-utilityjs_v1312
Could you give more instruction for how to use it on autocomplete function? ThanksAttachments:
lzuhuoParticipantHi Alex. Great solution. Is it possible change the layout for example to include the logo of the site? And the possibility to print in thermal printers and matrix printers.
-
AuthorPosts