Is there any way to view a report for all pages scheduled for activate later from AEM? I am able to see one report under Tools (Workflow Report) which shows the total count of "Scheduled Page/Asset Activation", but I want to see all page information about scheduled page activations including time for activation.
You can view all running workflow instances by navigating to
http://localhost:4502/libs/cq/workflow/content/console.html and clicking on the the Instances tab. Look for Scheduled Page/Asset Activation under the Workflow Model column. You can group and sort by that column.
If you want to search from within your code, you can find the resources waiting to be activated with these JCR-SQL2 or XPATH queries:
SELECT * FROM [cq:Workflow] AS s WHERE ISDESCENDANTNODE(s,'/etc/workflow/instances') AND s.[modelId] = '/etc/workflow/models/scheduled_activation/jcr:content/model' AND s.[status] = 'RUNNING'
/jcr:root/etc/workflow/instances//*[#modelId='/etc/workflow/models/scheduled_activation/jcr:content/model' and #status='RUNNING']
However, it sounds like what you want to do is create a custom report:
Navigate to http://localhost:4502/miscadmin.
Open Reports in the left pane.
Click New... > New Page... in the right pane.
Select the Workflow Instance Report template and give it a title.
Open the new page.
Drag Model from the sidekick into the parsys. The report should immediately populate.
Drag Payload from the sidekick into the title bar where Model already exists.
Click the dropdown arrow in the Model column, select Filter, equals and enter Scheduled Page/Asset Activation.
Drag Status from the sidekick into the title bar where Model and Payload already exist.
Click the dropdown arrow in the Status column, select Filter, equals and enter RUNNING.
You can drop in any other columns that you wish. You can save the report and set it up to create snapshots as well.
This will give you a report of pages scheduled to be activated. Unfortunately, it won't tell you the time that the page will be activated. In order to accomplish this you will have to create a new reporting column component.
Copy /libs/cq/reporting/components/instancereport/payloadcol into your apps folder renaming as something like scheduledcol.
Look at the scheduledcol node and notice the jcr:primaryType, componentGroup and sling:resourceSuperType; it's a regular CQ component.
Update the jcr:title property to Scheduled.
Update the scheduledcol/definitions/queryBuilder node's property property. You can go with either ./data/metaData/comment which gives you plain text or you can use ./data/metaData/absoluteTime which gives you the date and time in milliseconds when the activation will occur. Look at a workflow instance under /etc/workflow/instances/<date>/model_<number>/data/metaData and you'll see how the new component's queryBuilder property matches up.
Return to your report, refresh the page, and drag the new Scheduled component from the Sidekick onto your report.
Related
I've modified the board and added a column in Jira but there are no status for it and it doesn't show on the board, how to fix and have the new column show up on the board and work correctly ?
This has confused me several times so I'm documenting the steps here.
Go to Board Settings
Click on columns
Click 'Add column' to add the new column - Code Review in my case
You will notice however that the board say
This column will not show on the board without a status
You may also notice that the min/max values cannot be entered
So you (think) next go to Issue Types...
WRONG !
Actually you want to go to
Workflows
You'll see a workflow called something like Software Simplified Workflow for Project [..].
Click on the Actions edit link (the pen symbol)
Now you will be presented with a diagram showing the status'.
Click + Add status and add the new status, e.g. Code Review
Make sure you allow transitions from the other status (it is unchecked by default, so you should usually check it)
It is when you fail to do this that you can run into the 'can't drop ticket into column problem'
Next select the status category. Code Review was obviously "in-progress".
This allows for automatic ticket status transitions.
Arrange the new diagram to reflect the new status (this is for appearance in the diagram only).
Finally the last step is that you have to publish the change ('draft')
Now you can see the "unmapped status"
and you can move them into then new column
When you do all this, finally you can reload the board and see the new status!
Whew !!!
I can select component by changing Editbar.js as mentioned below link.
Unable to select the components on a page
but after checking components that I want to rollout, then select rollout selec ted components, but keep getting alert message saying that you have to select at leaste one component.
why why? T_T
Try selecting the component(s) after you select the "Rollout selected components" option and before you click the "Next" button.
is it possible to find the control name for control which is an edit method in ax 2012 form.
i.e how to find control name for edit method control.
I tried but could not find the correct name .
You can right click on the edit method and click "view details" and it will show you something like Fld_23 in the lower right corner.
Or if you need to dynamically determine this, I wrote a blogpost on how to recursively enumerate every control on the form. http://alexondax.blogspot.com/2014/05/how-to-use-recursion-to-loop-over-form.html
The controls are generated at runtime and there is a variable counter that just counts up as each new dynamic control is added during form runtime. So you can use the name you discover, as long as the form doesn't keep getting modified. It might be a good idea to just obtain the static group object or whatever that contains the edit method, then just find the child from there.
You must Right Click on form and click on Personalize option.
In personalization form , Goto information tab and Click on Edit form name.
Then You can see and edit form controls in AOT.
You can use below link for more information.
https://technet.microsoft.com/en-us/library/aa597239.aspx
Ok so I created a Drill down Report (lets call it DrillONE) which uses a hyperlink to drill down to a other report (lets call it DrillTWO)
the drill down report (DrillTWO) doesn't have Input controls because it gets all its info from the report that is calling it (DrillONE)
So the hyperlink to DrillTWO looks something like this
"./flow.html?_flowId=viewReportFlow&reportUnit=
%2FNWU%2FStudentInformation%2FAcademicProgramDevelopment%2FAPQIBI005drill
&startDate=" + new SimpleDateFormat("yyyy/MM/dd").format($P{startDate})"
Now my problem comes when Going back from DrillTWO to DrillONE (Without having to enter the input controles again and clicking RUN)
What happens is When I click the hyperlink back to DrillONE it sends the parameters and everything along fine, but it loads the input control screen and then the user has to run the report
I want it to go directly to DrillONE and run it, (Skip the input controle screen)
Is DrillONE set to always prompt for input controls? Turn this off.
I have two Views called UserView and RoleView.
UserView.xaml contains RadGridView which contain three columns
UserID (Label) | UserName (Label)| Role (Dropdown).
RoleView.xaml contains one TextBox where i can add Roles into database.
Role (Textbox).
Step 1. Now first i open the UserView.xaml and it will display
records from database with appropriate roles.
Step 2. Now i open new page RoleView.xaml (minimize UserView.xaml).
Step 3. I have added one role. (AdminRole)
Step 4. Now i open UserView.xaml (it is already in memory, so just i
navigate to this page)
Step 5. Now i double click to any of the row with Role (Dropdown
column) it will comes into edit mode and populate list of roles.
**but it will not display recently added role (AdminRole) in dropdown. because of the data source will not getting referesh.**
If i am closing the UserView.xaml and reopen this page then it will display recently added role (AdminRole) in dropdown.
Note: my requirement is like, i have to update or notify all opened views once any of the change from anywhere.
I am using
Silverlight 4 (MVVM)
PRISM
telerik RadGridView
Your help/comment/suggestion would be highly appreciated!
Thanks,
Imdadhusen
Prism comes with an Event Aggreator. Where you have publishers and subscribers to these events, which we'll call "messages". Have a look at the MDSN link below:
http://msdn.microsoft.com/en-us/library/ff921122(v=pandp.20).aspx
What this means is you can have each view subscribe to an update message and have them update whenever they receive this message. So you could send an "update" message each time a view changes.