Trigger script on change of a custom preference - netsuite

Further to my last question around custom (general) preferences, is there a way to trigger a script whenever a general preference is changed in the UI?

That page is not scriptable so I don't think it is possible.

Related

Netsuite Customization Requirement

Can anyone suggest what is the best way to accomplish this ?
Scenario: Item fulfillment Record is being created by Shipstation Integration which has Package Content in Format A.
Requirement :
But We want to use that IF record to be exported to another application (Integration) and it mandates the IF record to be in a predefined format not same as Format A.
Please can anyone suggest what is the best possible way to achieve this ? If Suitescripting then which type would work the best.
A suitescript running on After Record Submit either under a user event script or workflow action script on the IF sounds like the way to go. It wants to only be triggered on the CREATE (not EDIT, unless you can post updates to your Shipstation integration).
This other question has an example of doing something after submission on an item fulfillment using the User Event Script.

Orchard CMS, how to prevent users from editing the same page simultaneously?

When opening two browsers and editing the same page as different users, the last user who saves overwrites the other user's work without warning.
I have tried looking into workflows but there isn't a signal for when a user starts editing a page.
Is there a way to prevent the scenario described above without customising orchard?
When I was using Orchard heavily back in 2013, we added the SoNerdy.ConcurrentContent Orchard module to add this functionality. It worked well for us at the time.
Orchard has no inbuilt way to do this I'm afraid.
It is a little more complicated that it may appear I think. To implement this functionality you'd probably need to add SignalR (or some ajax polling) to monitor when a user has the editor page open. A slightly easier solution to your problem could be to create a part that checks whether the posted modified date has changed since the edit page was opened and lets the user know someone else has edited the page. They can then refresh the editor and redo their edits, not as pretty but simpler to implement.

Get current users lotus notes database

there is a way to pick up (by code) who are currently using a particular DB. It could be Java, Lotusscript, Formula, anything, I just want to know who is currently using it. I would put it in a agent.
In general, no, there is no way. You could build a way in your own application by adding code that tracks each user whenever they open it, and timing them out to decide when they have stopped using it, but there's nothing built-in to do that.
I did it!
In Domino Administrator there is a way to see who is using all databases in that server.
Here's a example
Actually you see "sh users" shell command in a beautiful way.
So what I did was use the "session.Sendconsolecommand('server', 'sh users')". It returns me the data on the above image in a String.
There was a pattern so I search in It if the user is currently using the DB.

add custom webpi feed programmatically

Is it possible to add custom feed programmatically to Web Platform Installer? I tried adding the feed manually and found that the feed location is stored in `%APPDATA%\Microsoft\Web Platform Installer\web.preferences file. However the file seems somewhat cryptic and I would not like to modify it manually. Is there any API for that?
Update: even if this web.preferences file could be edited it is not the way to go as it is user specific file and I need system wide configuration.
Based on this link,
Sorry, there isn't a way to do that currently (for security reasons,
we don't allow an untrusted feed to be loaded without the user's
consent)
Once the feed is added via the Options dialog, it does persist between
sessions
I think we can't add custom feed without intervene from user. Maybe you can use WebpiCmd.exe
that can be configured programmatically via scripts.
C:\Program Files\Microsoft\Web Platform Installer>WebpiCmd.exe /List /Feeds:http://yourcustomwpifeed.co.id/customFeed.xml
A little late, but maybe it may interest others. You can modify the file %APPDATA%\Microsoft\Web Platform Installer\webpi.preferences. Yes, it is a little cryptic, but here's my post about how to do it.
The file webpi.preferences is user-specific. If you want to set settings for all users, all I can think of is to write a bootstrapper application that first modifies webpi.preferences (using the code in the post) and then runs WebPlatformInstaller.exe.

Can I change the name of the Sharepoint workflow?

I need to change the name of a Sharepoint designer workflow.
There is a simple direct way I can edit it via SPD right clicking the workflow name. However often the simple, apparently straight forward things that cause unforeseen
issues.
Will this affect the functionality of the workflow or application?
Thanks!
In addition to breaking all or most existing hyperlinks to that workflow (such as initiation forms, etc.) and the weirdnesses already pointed out, renaming the workflow can negatively affect the running instances of the workflow.
(Sorry, I can't be more specific; I just know that it's not recommended unless necessary. :-/)
You can also rename the workflow by:
Open the site with the workflow in SPD
Open the workflow in SPD
Click the "< Back" button
Change the name of the workflow
Click Finish to save
AFAIK, renaming the workflow (the way I specified above) will not cause issues.

Resources