Adding List Data queires in Anywhere Administration application in Maximo - maximo-anywhere

I am using the Anywhere Administration application in Maximo.
What I am trying to do is to add several WorkList queries to the WorkExecution app. (I do have worklight.properties with si.adminmode=true, and I have run Anywhere-Admin-Loader allApps with ant).
I have additional queries in there that have been added using SQL and work fine on the mobile device.
But when I try to add one using the app there are no values to select in the Select Value list for QueryBase ID.
There are additional saved queries in the WOTRACK saved queries
But even if I try and type one of the values in I get an error.
Has anyone else come across this and have a solution.

There was a bug on Maximo's with an Oracle database, fixed in the 7.5.2.1 fixpack that made this Select Value list empty. Could that be the issue that you're hitting?

Related

Ignition 8.1 reporting module: Report not displaying row-0 of table

I have configured a simple report which is running a named query. In the preview tab, (on the right-hand side, in the raw data browser) I can see that my query is returning all rows, but in the actual report, I am missing row-0.
I deleted the table and reconfigured a new one the same way and that worked.

How to get column wise data using AEM query SQL2?

I am running a following AEM Query SQL2 on CRXDE and it is successfully returning me nodes as per following given screenshot.
But I need data like column wise (jcr properties) like SQL table. Can anyone help me if it is possible.
You can't do this with CRXDE. It shows only the path of the most outer node, even if the query has multiple columns. This is especially limiting, if your query uses joins.
In your case I would recommend the Query Builder. It has a totally different syntax, but the JSON or XML result contains all data you need.
I don't know other tools. As AEM developer I usually write a quick & dirty servlet, and let it run on my local instance (with production content)
Query Builder Debugger
http://localhost:4502/libs/cq/search/content/querydebug.html
Example Query
path=/content/we-retail/language-masters/en/experience
property=sling:resourceType
property.value=weretail/components/content/image
p.hits=full
p.nodedepth=2
Resulting JSON Query
http://localhost:4502/bin/querybuilder.json?p.hits=full&p.nodedepth=2&path=%2fcontent%2fwe-retail%2flanguage-masters%2fen%2fexperience&property=sling%3aresourceType&property.value=weretail%2fcomponents%2fcontent%2fimage
http://localhost:4502/bin/querybuilder.json?p.hits=full&p.nodedepth=2&path=%2fcontent%2fwe-retail%2flanguage-masters%2fen%2fexperience&property=sling%3aresourceType&property.value=weretail%2fcomponents%2fcontent%2fimage
Documentation
https://docs.adobe.com/content/help/en/experience-manager-64/developing/platform/query-builder/querybuilder-api.html
In your case especially see: Refining What Is Returned
You will find much more with Google, as the Query Builder is pretty old in AEM/CQ.

Dynamics CRM Online - Modifing an existing report

I am trying to modify an existing report (Orders) and I must be doing something wrong because when I export the report and I open it in Visual Studio I don't see the actual report.
As you can see the actual report is not being displayed.
I go to the report entity in Workplace, select the report and click on Edit. From there I go to More Actions and click on Download Report. I then go into SQL Server Data Tools and create a Report Server Project. I then go to the Report folder, right click and Add Existing Item, selecting the order.rdl file.
What am I doing wrong?
.....
After some more research it's my understanding that none of the queries come down as FetchXml but as SQL statements that have to be converted to FetchXml.
One problem That I'm having is the use of a function. How does that get converted to FetchXml?
SELECT fullname
FROM FilteredSystemUser
WHERE (systemuserid = dbo.fn_FindUserGuid())
Thanks,
Gary
Your main problem is that you environment is Dynamics CRM Online, this means that you need to create your reports only with FetchXML, no SQL reports are allowed.
The second problem is that you want to modify a built-in report , because most of the standard reports (I'm not sure if all the reports but Order is one of them) are built using SQL you can't modify and import back, you need to recreate using FetchXML.
Last thing, the report you opened refers to a sub report (stored in a separate rdl file)

Where to get the URL data from in this trigger

I was having old tridion 2009 trigger, this is the code:
CREATE TRIGGER My_TABLE ON [ITEMS]
FOR INSERT
AS
INSERT INTO My_TABLE(ACTION, PUBLICATION_ID, ITEM_REFERENCE_ID, ITEM_TYPE, LAST_PUBLISHED_DATE, URL, SCHEMA_ID)
SELECT 'ADD', PUBLICATION_ID, ITEM_REFERENCE_ID, ITEM_TYPE, LAST_PUBLISHED_DATE, URL, SCHEMA_ID
FROM inserted
In tridion 2009 URL and SCHEMA_ID where part of ITEMS table, however when we upgrade to Tridion 2011 SP1, these columns do no longer exist in the ITEMS table.
SCHEMA_ID is moved to the COMPONENT table, I am little curious how to get the URL for each type of items (page, component etc. do we need to use link_info table to get url)
Just let me know which table would be used to get the URL as it was in ITEMS table before
Thanks.
There's a reason why Database details are never documented: SDL does not support access to that data at this level.
You have a pretty rich API to retrieve the data you need whenever you need it, and this allows SDL to constantly improve the database layer without having to worry about implementation support.
In your case, it might help if you explain a few things here...
Which Database is this? Reading the column names it looks like it's a Content Delivery database?
Why do you want to store the published URL? It's already there.
In case it's not clear yet, you should use the Linking classes to get the URL, not the LINK_INFO table. A properly setup environment will cache these values so you don't need to worry about any database impact. If this is not yet enough, and you really do need a custom table with custom values, then consider using a Deployer Extension that populates your table(s) as needed.

Sql Database Server

Hi i have a sql database server runnin on my desktop. I want to create an asp.net application to detect when new data has been inserted into the database. Is there a command in visual studio to detect when theres new data right away?
Use the timestamp datatype on each column. This will stay identical until a change is made to any column in that row. If you combine this with the rowcount you can be certain if anything has changed in your database. You would need to cache the current timestamps and row count and compare them with the results of a query, you can then find out if there is a change.
So in your answer to:
Is there a command in visual studio to
detect when theres new data right
away?
Yes there is, although its not a command is the timestamp function (not to be confused with anything to do with the time)
Perhaps you need to provide more details to your scenario since constant querying of the database might not be the best way forward.
You can get a row count of your dataset and create a application
IN VB
Dim i as Integer
i=dataset.tables("table").rows.count
in sql backed return a count of a table and create a ASP.Net website to get the count and when count change alerts you
It may be heavier duty than you are looking for, but SQL Notification Services will do what you want. Essentially you execute a query and tell notification services you want to be notified whenever re-running that query would produce different results.
if you are using caching you can make it dependent on sql.
or you can fire email using sql trigger so when ever trigger get fired you will receive an email.
otherwise you will have to check your db again and again for any changes.
if you can provide more details about exact situation , we can provide more specific solution
You can create a webservice and call it using javascript.
here you can find sample how to call webservice using javascript:
function CallWebservice()
{
myWebService.isPrimeNumberWebService.callService(isPrimeNumberResult, "IsPrime",
testValue.value);
setTimeout("CallWebservice()",100);//here set time according to your requirement
}
For timer in javascript:
http://dotnetacademy.blogspot.com/2010/09/timer-in-javascript.html
For webservice in javaScript:
http://www.webreference.com/js/tips/020715.html
How to call webservice in JavaScript for FireFox 3.0

Resources