Master Template name is being reset after reopening application - xpages

I cloned a project on Sourcetree and created .ntfs using the given on disc project that I imported. These .ntfs had no master template declared so I tried to declare them manually.
When I close and reopen the template, the master template name is either reset or gone completely.
If I do the whole process on a local project, I can freely rename the master template with no problems whatsoever.
I have full access administration permissions and am working on a domino server on my local virtual box VM.
I created a new .ntf using the existing one and encountered the same problem.
Furthermore, there is no difference in changing the name in the Domino Designer or Domino Administrator client.
Any help is appreciated.

This is Domino that does this "security" Check: Whenever you try to create an .ntf on a server with a template name (Database properties, Design- Tab, Database is master template) that does already exist on the server then the template name and the database title are reset to blank.
This is done to prohibit two templates with the same template name on the server as the results would be unpredictable. You need to clean the template name or reset title and template name in a second step. I usually either create the copy on local and change the template name before I replicate it to the server or I use code to create the copy and set template name and database title after creating the database with NotesDatabase.Title = and an API- Class to set the TemplateName Property.

There's a specific field on the Security tab of the server document that specifies the IDs with this authority, "Create master templates". Make sure your ID is in this field.

Related

Word Templates not showing up in SharePoint/Teams after being added via PowerAutomate

I've been trying to setup a flow that automatically mirrors (read: copies and creates new) Word templates from one Teams Channel to another.
The goal is to have them appear in the "+ new"-dropdown in sharepoint and teams (see screenshot).
"+new"-dropdown in Teams
I believe I managed to find the path to the folder in which to put the template-file, which is: https://yourcompany.sharepoint.com/sites/YourSiteName/Freigegebene Dokumente/Forms
The "Freigegebene Dokumente" should be "shared documents" in english afaik.
Here comes the caveat:
When I upload a template-file via powerautomate, they do not show up in the "+ new"-dropdown. When I then try to manually add the same file via the "+ new"-dropdown, it tells me that a file with that name already exists.
Am I missing something? I fully expected this to just work.
What I am trying to get running so that the bigger solution can work is this:
Manually trigger a Microsoft PowerAutomate Cloudflow
Get information about a specific file in SharePoint (a .dotx MS-Word template)
Get the content of that specific file
Create a new File in the */Forms folder with the same name and content as seen in the screenshot.
Be able to create a new File in SharePoint (and Teams) from that template via the "+new"-dropdown
The two parameters used are:
#outputs('Dateieigenschaften_abrufen')?['body/{FilenameWithExtension}']
and
#body('Dateiinhalt_abrufen')
Screenshot of the flow
After running this flow, I expect to have a new template to choose from in the "+new"-dropdown in SharePoint. That is not the case.
I know that there is something uploaded, because if I try to manually add the template via the "+new"-dropdown
manual upload in "+new"-dropdown
I get this error message:
Error Message on manual upload

Maximo: Create Reports feature for custom apps

I have create a new custom view in Maximo DB, added it through the Database Configuration.
Created an application on top to display the data based on that view.
Added new signature option CREATEREPT to use default dialog to create reports (Ad Hoc Reports).
When I try to preview any report in that dialog, I get the following error
BMXAA8093E - The report could not be created and the cause of the
error cannot be determined. Try to create the report again, or contact
your system administrator.
null
It appears error BMXAA8093E can occur in a few different scenarios where a problem occurs with a report and a more specific explanation can't be provided:
https://www.ibm.com/support/pages/error-trying-save-qbr-or-create-new-report
I would suggest first confirming if a more specific error or any additional information is provided in the application logs. Following that you may want to verify that you have a Report Object Structure (ROS) for the object structure based on your custom view (i.e. in Integration -> Object Structures there is a record with "Consumed By" set to "Reporting" that has your object structure based on the custom view as a source object). Although you mentioned adding a Signature Option it is not clear from your description whether a ROS (mentioned earlier) exists and whether Administration -> Report Administration -> Set Report Object Structure Security has been used to tie that ROS to an existing security group or groups.
I had the same issue. Here is the solution that worked for me: go to Database Configuration, select your view, ensure that EXTENDSOBJECT is populated. In my case, it was not. You can fix this from backend. Let's assume your extended object is ASSET and your view is MYVIEW:
update maximo.maxobject set EXTENDSOBJECT='ASSET' where objectname = 'MYVIEW';
update maximo.maxobjectcfg set EXTENDSOBJECT='ASSET' where objectname = 'MYVIEW'; commit;
Do NOT forget to restart the app server.

How to dynamically pass sql in query in Launch in context?

I need to have a button in custom Location app, upon clicking which will take me to workorder application list tab with all the workorders created on the assets of the particular location.
I am using launch in context.
I tried using WF, but the workorder is opening in main tab instead of List tab.
Work flow used
Interaction Node details
after routing, wotrack is opening like "http://hostname/maximo/ui/?event=loadapp&value=wotrack&additionalevent=changetab&additionaleventvalue=List&uniqueid=72&uisessionid=35&_tt=6e2h84jnc2qpnu9tohvo04qpdp"
how it is fetching workorder with unique id 72?
I think Launch in Context is the wrong tool. Launch in Context is used for launching the user from Maximo into some external website / application, using some data from Maximo to provide some context to that application.
Instead, it sounds to me like you should use a Workflow process with an Interaction Node. In the Interaction Node, you can specify the Application and tab to take the user to and the Relationship from the Main Object of the current app to use to find the record(s) that should be loaded in the destination app for the user.
I don't remember how to set up Launch in Context, but this web page on the URL parameters you can use should help on that part at least.
http://maximodev.blogspot.com/2012/04/maximo-urls.html
Specifically, the example using the SQL query is probably what you need, since you want to display the records (workorders) associated with the records (assets) associated with the record (location) you have. (The earlier outline of the article has the wrong URL values for the "Perform a query using a where clause" section, but the example near the bottom has the correct setup.)
http://localhost/maximo/ui/maximo.jsp?event=loadapp&value=wotrack&additionalevent=sqlwhere&additionaleventvalue=status%20in%20('WAPPR')
I think if you give the Launch in Context the part of that URL after the hostname, it will try to load it as a page at the current, which would end up taking you to exactly where you want to be, regardless of the public hostname of the server.
maximo/ui/maximo.jsp?event=loadapp&value=wotrack&additionalevent=sqlwhere&additionaleventvalue=status%20in%20('WAPPR')

Notes error: Index is not to be generated on server. (View Name)

I have a database that need to have dynamic views. The view selection will changed based on the user roles. I'm using "Shared, private on first use" views to do this so that when the user opens it for the first time a new separate view is created for her.
It works if I'm not first time opening the database as private views already created on my machine. The problem comes for the first time user. If they are first time accessing the database, they will recieve this error message:
Notes Error: Index is not to be generated on server ("view name")
Please advise.
Check the database ACL. There is a checkbox labeled "Create personal folders/views". Is this box checked for your users?

linking databases in lotus notes

I have a NSF , in that "new request" one action button is there, when am clicking that one, first it is throwing an error like "Master database cannot found please contact "NSF name" administrator" and it will opening the corresponding page.
Here my question is
Is that database is linkup with another( may be that's why it is throwing the error), if so then how can i link up the master database with the actual database to avoid that error
please help..thank you very much
There is apparently a missing configuration document that identifies to the master database. The person who wrote the code actually wrote a good error trapping routine because it tells you what happened. However, without seeing the code, we can't tell you how to fix the problem.
There is no specific "linkage" between Notes databases. The developer wrote custom code to interact with that other database and there's no way to know how without seeing that code.
Action buttons that access other Notes databases typically use the filepath and server name or sometimes the target database replicaID, if these are hardcoded in the new request action button (very bad programming, but not uncommon in old applications) and the target database has been moved, or renamed or more likely a copy has been made with a new replicaID then the button will fail.
The path to the target database may also be stored in a configuration document which hasn't been updated when one of the above happened. These will usually only be accessible to database administrators and hidden unless you have manager or manager level access to the database. You will need to get the Lotus Notes adminis involved but look at the code so you can tell them what they are looking for.

Resources