Hi,
I read in another post that it was not possible to add controls to the SPDataTable toolbar easly...but..
I have one problem:
Why I can't add text to the second button (for creating new folder). I could change the text of the first button (because the french translation of upload is not good: it should be "Charger" and not "Télécharger") and on the fourth button (because it was not translated), and I could add text to the third button (because the symbol is not really clear)...but changing text on the second button does not make the text appear on the button ?!?
The code I used is the following one:
fd.control('SPFichiersLivrable').buttons[0].text = "Charger";
fd.control('SPFichiersLivrable').buttons[1].text = "Nouveau dossier";
fd.control('SPFichiersLivrable').buttons[2].text = "Niveau supérieur";
fd.control('SPFichiersLivrable').buttons[3].text = "Supprimer";
Waiting the answer, I discovered another problem...
I inserted the above lines in the spRenderer function...and sometimes, without knowing the conditions, I get the error in the console "TypeError: Cannot set property 'text' of undefined", and the text updates are not shown...that would mean that at this instant, the button[x] is undefined !!!
Regards.
Dear @educos35,
Thank you for contacting us! Yes, the button is a bit more complex than others, I'll ask the devs if there is a way to add the text to it, and if not - we'll see if it can be changed in the future. Please, stay tuned!
Hi again,
Thanks for this information...
But what about the linked problem i mentioned at the end of the thread ? Why sometimes, the button seems to be undefined ?
Dear @educos35,
Can't say with 100% certainty, but if you just insert the button code in spRendered event, the List or Library control might be not ready yet.
To avoid this, wrap all the calls inside the ready event:
fd.spRendered(function() {
fd.control('SPFichiersLivrable').ready().then(function(dt) {
//dt parameter is the same as fd.control('SPFichiersLivrable')
console.log('SPFichiersLivrable is initialized');
});
});
Hi,
My answer was to fast...
That's work...but...until the user upload a file...
During upload operation, the text of the first button change style an says "Téléchargement en cours" (whereas it should be "chargement en cours", but nevermind...this text appear a short time)...the problem is that after this text is displayed, the system display "Télécharger" and I do no see where I can force again the texte to be corretly set as "Charger". Th current code that I tried is the following on...
fd.control('SPFichiersLivrable').ready().then(function() {
setRootFolder();
fd.control('SPFichiersLivrable').buttons[0].text = "Charger";
fd.control('SPFichiersLivrable').buttons[1].text = "Nouveau dossier";
fd.control('SPFichiersLivrable').buttons[2].text = "Niveau supérieur";
fd.control('SPFichiersLivrable').buttons[3].text = "Supprimer";
});
fd.control('SPFichiersLivrable').$on('change',
function(changeData) {
fd.control('SPFichiersLivrable').buttons[0].text = "Charger";
fd.control('SPFichiersLivrable').buttons[1].text = "Nouveau dossier";
fd.control('SPFichiersLivrable').buttons[2].text = "Niveau supérieur";
fd.control('SPFichiersLivrable').buttons[3].text = "Supprimer";
});
I also tried to update the buttons on filesUploaded event, but the result is the same...
Dear @educos35,
Please, try to add a short delay, like this:
fd.control('SPDataTable1').$on('filesUploaded',
function() {
setTimeout(function(){ fd.control('SPDataTable1').buttons[0].text = "Charger"; }, 500);
});
And what about "Télécharger"? Is it an incorrect translation in this case?
Thanks,
It works...and exact...the correct translation is the following:
Upload -> Charger (and during uploading...Chargement en cours...)..(PC -> SHpt)
Download -> Télécharger...(Shpt -> PC)
I hope that we could implement the download functionality (see the other thread I created)
Regards.
1 Like
Dear @educos35,
Thank you for the feedback! We'll try to address this in future updates.
Dear @educos35,
Please, clear the browser's cache - the French localization should now be fixed. Let me know if there are any issues. We've also added an ability to create documents from List or Library control.
1 Like
Hi,
Thanks for the correction. It works...
Ok for the new "Element creation" menu in addition to the folder creation...
Now, only one important feture missing: downloading a single file or multiple file as ZIP file as it is implemented in standard modern list...
Regards.
Hello @educos35,
Are you considering paid support?
We have no plans to add this feature anytime soon, but we can add it for you. Please contact us by email [email protected] to know all details.
Hi,
I am not the person which can take decision.
I have transmit the information that this function could be implemented with paid support.
I have no return until now, but as a developer, I think that the next question that will come to me is how much ? and then how do you manage that this improvement will be available only to us (as we will pay for this new feature)
Regards.
Dear @educos35,
To determine how much time it will take to develop (and consequently how much would it cost), please, send all the details about the request to [email protected], where we can discuss it privately.
Please, note that we do not sell personalized features, our prices are much lower than you would expect for personalized features. Instead, we can shift our focus from the current goals to whatever feature you pay for, and it gets delivered much quicker.
This is a win-win scenario, since you receive a feature that you need quickly and only for fraction of its price, but we also get extra funds and deliver features that would sooner or later be developed anyway. You can wait, and sooner or later it will become available, we have it in our roadmap, but we don't have any estimate on when it happens - can be a few months, can be a year, can be a couple of years.
1 Like