How to get pages list for a group space or create a page for a group space
hi All,
I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
1. Get pages list for a given group space
2. Create a page for a given group space
I researched the following codes from web site:
PageDef newPage = mPageService.createPage(
PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
"MyPageTemplate1.jspx",
"/mytemplates/",
null, null, null);
What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
Best regards
did you manage to get the page list using Page Service API?
Similar Messages
-
How to get a list of Local Users who has not logged in for 3 months or around 90 days
hi
i found this thread to pull out a list of local users
Retrieve all local user accounts information on remote computers (PowerShell)
however, i need to filter out users who has not logged in for 3 months or around 90 days, how can i do further filtering?
i understand dsquery has an -inactive <xweeks> , however i am doing it for local accounts$ErrorActionPreference = "silentlycontinue"
$([ADSI]"WinNT://$env:COMPUTERNAME").Children | where {$_.SchemaClassName -eq 'user' -and $_.lastLogin -gt (Get-Date).AddDays(-90)} | ft name,lastlogin
using the sample from the link extendend with the 90 days criteria, the erroraction preference surpresses the errors you get for accounts with no lastlogon value (guest being a typical one) -
How to get the list of parameter and set them using RESTFul WS for a Crystal Report
Hi All,
I am able to schedule a Crystal report using following POST Restful call - http://localhost:6405/biprws/infostore/4738/scheduleForms/now and with a request xml body. But report is failing because I am not passing the parameter.
But I need pass parameters/prompts to the Crystal report to execute successfully.
What is the request XML to pass the parameter for the report?
I was able to do this for WEBI reports but I am not able to find any way to do this for Crystal reports?
Any help on this matter is really appreciated.Hi Venki
Please have a look at:
How to pass parameters and generate the report using RESTful API in VB.net
This is also described in the Developer Help files:
http://help.sap.com/businessobject/product_guides/sbo41/en/sbo41_webi_restful_ws_en.pdf
- Ludek
Senior Support Engineer AGS Product Support, Global Support Center Canada
Follow us on Twitter -
How to get the list of users who has access for list of tcodes.
How to get the list of users who has access for list of tcodes.
Go to transaction SUIM, this has a number of reports for users/authorisations
open the Where used>Autorization Values>In Users
and double click to execute
in authorisation object, enter S_TCODE
then press the "Enter Values" button
It will offer entry boxes to put the transaction code you are interesed in.
Then execute and the list of users with access to this transaciton code will be returned. -
How to get the list of active devices in current wifi network?
Hi All,
I am going to a start a new Network based app. So please any one give me an idea on the below question.
How to get the list of active devices in current wifi network?Nope I want the log-in user to retrieve its Group where he is belong. I have this following code
strUsername = Request.getParameter("username").toLowerCase().trim()+"@dev.test.com.ph";
strPassword = Request.getParameter("password").toLowerCase().trim();
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,strUsername);
env.put(Context.SECURITY_CREDENTIALS, strPassword);
// enable tracing
env.put("com.sun.naming.ldap.trace.ber", System.err);
// Create the initial context
DirContext initCtx = new InitialDirContext(env);
// Get the target context
DirContext targetCtx = (DirContext)initCtx.lookup("");
SearchControls constraints = new SearchControls();
constraints.setSearchScope(SearchControls.SUBTREE_SCOPE);
// Perform the search on the target context
NamingEnumeration enum = targetCtx.search("","(userPrincipalName="+strUsername+")",constraints);
javax.naming.directory.Attributes attrs;
NameClassPair item;
String[] attrIds = new String[]{"MemberOf"};
// For each answer found, get its "Groups" attribute
// If relative, resolve it relative to the target context
// If not relative, resolve it relative to the initial context
while (enum.hasMore()) {
item = (NameClassPair)enum.next();
Out.println(item);
attrs = targetCtx.getAttributes(item.getName(), attrIds);
Out.println(attrs + "<br>");
initCtx.close();
It returns all this string :
{memberof=memberOf: CN=CMCanadaRD,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=iMngrCanadaRW,OU=Groups / Teams,DC=dev,DC=test,DC=com,DC=ph, CN=Domain Users,CN=Users,DC=dev,DC=test,DC=com,DC=ph, CN=Backup Operators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph, CN=Administrators,CN=Builtin,DC=dev,DC=test,DC=com,DC=ph}
How can i retrieve the Group named CMCanadaRW and CMCanadaRD on the Attribute?
Thanks -
How to get the list of component?
How to get the list of component through java API in Adobe CQ5?
There are probably more than a few ways, but here is a little component .jsp code that uses the jcr query api to pull out all the components and list them on a page. If I know CQ, there might be a way to ask for a list of components another way though, maybe through another API, or possibly a .json url, I might remember reading something about that, somewhere, lol, but this at least gets you the list in a somewhat simple way.
Code Example:
<%@include file="/apps/psul/components/global.jsp"%>
<%@ page import="javax.jcr.*,
javax.jcr.query.*"
%>
<%
// Login to create an anonymous session on the default workspace
Session session = resourceResolver.adaptTo(Session.class);
//Declare a query for all the components in the system
String SQL = "select * from cq:Component";
//side note: if you want just the components in your site area, then make the query more like below...
// SQL = "select * from cq:Component where jcr:path like '/apps/yoursitename/%'";
QueryManager qm = session.getWorkspace().getQueryManager();
Query query = qm.createQuery(SQL, Query.SQL);
QueryResult result = query.execute();
NodeIterator nodes = result.getNodes();
while (nodes.hasNext()) {
Node node = (Node)nodes.next();
%>
<p><%=node.getName() %> (<b><%=node.getPath() %></b>)</p>
<% } %> -
How to get a list of every application on my computer?
I'm trying to figure out how to get a list of every application on my computer using applescript. I know it is possible for the system to do this, as evidenced by the dialog you get when you use the "choose application" function. Other examples are doing a spotlight search for "kind:app" or programs like Namely or QuickSilver.
Is there a way to do this in applescript? The only solution I've come up with so far is to use the command:
<pre>set everyapplicationaliases to choose application as alias with multiple selections allowed</pre>
and manually select all on the resulting dialog. I can then take the results and go from there, however there are a few significant problems with this approach.
1. It requires user interaction. (I have an idea for some future applications that could use this functionality if it can be done without user input.)
2. It's horribly slow. As a test run I choose all the applications from the dialog, extracted some basic info and put the result on the clipboard. It took a couple of minutes to complete this relatively basic task. In comparison, running the aforementioned spotlight search took maybe ten seconds.
Thanks in advance!
best,
peterFor these specific queries my results are...
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'application'c) || (kMDItemKind = 'widget'c)\"")
3082
set appList to paragraphs of (do shell script "mdfind \"(kMDItemKind = 'Application'c) || (kMDItemKind = 'Widget'c) ||
((kMDItemContentTypeTree = 'com.apple.application') && (kMDItemContentType != com.apple.mail.emlx) && (kMDItemContentType != public.vcard))\"")
3115
I think I finally found some numbers that make sense!
When I search for Kind:Application by the Command+F method in the Finder, I get a total of 2521 items, of which 2477 are "Applications" and 44 are "Other".
(Just by eyeballing it, "Other" seems to include some Classic Apps and some .bundle files.)
The total # found by this method (2521) plus the number of Widgets found using mdfind (318) equals the number of total number of items found by spotlight (2839).
I also noticed that these numbers almost equal the spotlight number:
mdfind results for kMDItemKind:
Widgets: 318
Applications: 1684
Classic*: 795
and
Command+F "Other" items: 44
3181684+79544 = 2841
It may be a fluke that this is so close to the 2839 spotlight gives, or maybe there's an overlap somewhere...
Tying this back into my initial question, it seems like the original mdfind command for Applications is probably the best answer for what I was looking for,
since I wasn't really thinking about Classic apps and Widgets anyway. -
How to get the list of materials from Sap r/3
Hi Experts,
I have one doubt, here iam implementing
HTTP TO RFC scenario.
My doubts are------
1. Should we create DT MT MI and all (OR) not
2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).
3.Or the second thing is how to get the list of materials start with some alphabate.
Please reply me for each and every questions mentioned above. Please clarify me.
Helpful answers wil be rewarded.
Reagards
khannaHi Khanna,
<i> 1. Should we create DT MT MI and all (OR) not</i>
Yes U need to create for HTTP site...for RFC U need to import..
<i>2.In Request DT how the message structure wil be to get the list of materials from sap r/3 system as Response(Ex: Fields in the source structure).</i>
You create your own structres for Request and respoce.. and Map it with RFC..
<i>3.Or the second thing is how to get the list of materials start with some alphabate.</i>
I think it will come with acending order....
for more help go through this link
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit - File to RFC
regards,
Ansar. -
How to Get a list of pending deferred tasks
Hi all
there is a bunch of unfinished threads here asking how to get a list/report of deferred tasks that are associated with user objects and scheduled for future execution.
I need this list and I can't find out how to get it anyway.
I don't care if it's a SJSIM report, a database query or a SJSIM log mining exercise.
Does anyone know how to do this?
My org has just gone live with SJSIM and I want to report on the number of legacy resource accounts that have had deferred tasks created against them for future disabling/deletion (our consultants added this workflow based on rules with an email warning, a disabling deferred task set for 2 weeks from now and a deleting deferred task for 6 months after that). Hopefully I can say "look, 5,000 legacy accounts are going to be cleaned up!
Thanks in advanceYou can do it with a custom workflow, something like this:
<Activity>
<Action id='0' class='com.waveset.session.WorkflowServices'>
<Argument name='op' value='queryObjectNames'/>
<Argument name='type' value='User'/>
<Argument name='attributes'>
<list>
<new class='com.waveset.object.AttributeCondition'>
<s>deferredTaskDate</s>
<s>isPresent</s>
</new>
</list>
</Argument>
<Action id='1' process='Check User'>
<Iterate for='currentUser' in='queryResult'/>
<Argument name='accountId' value='$(currentUser)'/>
</Action>
</Activity>And:
<WFProcess name='Check User'>
<Variable name='accountId' input='true'/>
<Activity id='0' name='start'>
<Transition to='Check User'/>
</Activity>
<Activity id='1' name='Check User' hidden='true'>
<Action id='1' name='Get User View' application='com.waveset.session.WorkflowServices'>
<Argument name='op' value='getView'/>
<Argument name='type' value='User'/>
<Argument name='id' value='$(accountId)'/>
<Argument name='authorized' value='true'/>
</Action>
<Transition to='Got One'>
<notnull>
<ref>view.accounts[Lighthouse].properties.tasks[Legacy Cleanup].date<ref>
</notnull>
</Transition>
<Transition to='end'/>
</Activity>
<Activity id='2 name='Got One'>
<ActionResult name='users' type='message' overwrite='false'>
<ref>accountId</ref>
</ActionResult>
</Action>
<Transition to='end'/>
</Activity>
</WFProcess>This just gives a rough idea of how it can be done. It might be best to bring your consultants back in to implement this.
Edited by: PaulHilchey on Feb 25, 2009 10:35 AM -
how to get reading list in my all my devices and computer (window 7). i have installed ios 6 on iphone and icloud control panel on both PC's (home and office) but i dont get updated reading list on all my devices.
Hi bluegrandpanash,
Thanks for visiting Apple Support Communities.
If you backed up your iPhone to iCloud before updating the software, first try the steps under "Restore from an iCloud backup" in this article to recover your data:
iOS: Back up and restore your iOS device with iCloud or iTunes
http://support.apple.com/kb/HT1766
Best Regards,
Jeremy -
How to get the list of Quotations...???
Hi MM Gurus,
How to get the list of Used Quotations & Non Used Quotations.
i am not talking about Open quotation ,closed quotation..
if once i created PO through quotation it should be used quotation. i not created PO through quotation
it s should be Non used quotation. how to get this list through when we create PO through ME21N
document over view. is there any opetion in Dynamic selection or somthing ..???
Thanks in Advance..
Anthyodaya.Hi Shailesh,
Thanks for the mail...
but the problem is different. ...i wanted a list of used quotations and not used quotations saparate list.
because we have same vendor for same material different price .
so when we create PO we should use Quotation only one time.
poen RFQ and closed RFQ is different .i means RFQ not at maintained in ME47. not at received the price from vendor or not at enterd the price. ... so that is different..
if the non used quotation will display in ME21N document overview it should be very usefull...
Thanks in advance.
Anthyodaya. -
How to get the list of documents
Hi everyone
Can anyone help me How to get the list of documents residing in a folder of KM repository of SAP Netweaver using a simple java program
Thanks in ADV.
Rupesh KhemkaHi Rupesh,
I have written the code for you and it works with WebDynpro, no seperate java program is required.
Just try to paste it in your application code and run it.
try{
// Will check the user athentication for EP
IWDClientUser wdClientUser = WDClientUser.getCurrentUser();
IUser sapUser = wdClientUser.getSAPUser();
com.sapportals.portal.security.usermanagement.IUser ep5User = WPUMFactory.getUserFactory().getEP5User(sapUser);
ResourceContext context = new ResourceContext(ep5User);
// The path in which your folder resides
RID rid1 =RID.getRID("/documents/Public Documents/SCAP/");
IResourceFactory factory1 = ResourceFactory.getInstance();
ICollection icollection = (ICollection)factory1.getResource(rid1, context);
IResourceList resourcelist = icollection.getChildren();
int size1 = resourcelist.size();
for(int s=0; s<listOfDocuments.getLength(); s++){
IResource resource = resourcelist.get(i);
InputStream input = new InputStream();
input = resource.getContent().getInputStream();
}catch(Exception e){
e.getMessage();
Once you get the InputStream everything else is possible....
This will surely help you in reading the documents from KM.
Regards,
Rekha Malavathu -
How to get the list of roles assigned to a user in all the child systems
how to get the list of roles assigned to a user in all the child systems from CUA SYSTEM
Try transaction SUIM in your CUA system. Go to user, cross-system information, users by roles. If you run it wide open, you'll get all users and all roles assigned for all systems managed in your CUA.
Krysta -
How to get the list of site collections in wss 2.0 and wss 3.0
Hi,
How to get the list of site collections in wss 2.0 and wss 3.0
Please provide related articles to me
Thanks in advanceUse 11 for wss 2.0 and 12 for wss 3.0
Go to :\Program Files\Common Files\Microsoft Shared\web server extensions\11\BIN\”
stsadm.exe -o enumsites -url <root url>
to get the list of site collections and
stsadm.exe -o enumsubwebs -url <root url>
to get the list of sub sites.
http://support.microsoft.com/kb/832807
http://ServerName/_layouts/1033/Siteusrs.aspx to manage permissions -
How to get the list of icc profile,which Photoshop loaded?
I am developing a automation plugin,but I do not know how to get the list of icc profile,which photoshop loaded.
I have read the log of "getter" and "Listener",and not find the way to get the list.Thank you for you answer.
I find a icc profile has a "internal name" which show in the color setting menu in photoshop and a "external name" which is the file name. And the "internal name" maybe different with "external name".
How I can get the "internal name" from the icc profile? I do not find the information in the ICC Profile Format Specification.
Thank you very much! -
How to get the list of top 10 tables grown last week or last few days
Hi All,
Please let me know, how to get the list of top 10 tables grown last week or last few days
ThanksPlease let me know, how to get the list of top 10 tables grown last week or last few days1.Oracle Version and OS info please ... ALWAYS
2.Do you have licensing options (Tuning and/or Diagnostics Pack) ?
3.Have you ran AWR/Statspack in last week or last few days
1.Because Oracle do not store auto tack the history of tables growth. See below link where one user has showed the possible way of manual track of table(s) growth :
Re: oracle tables growth
2.MOS Note for How To Get Table Growth History Information? [ID 1395195.1]
3.If you are in 10g than EM of 10g has something called Segmnet Statistics which can show you the growth of your table.
4.Other clue :
SQL> select * from table (dbms_space.object_growth_trend('SCOTT','EMP','TABLE'));
TIMEPOINT SPACE_USAGE SPACE_ALLOC QUALITY
17-SEP-12 11.06.20.228000 AM 1593 65536 GOOD5.A good script by Mice Ault for historical growth of segments within AWR:
http://www.dba-oracle.com/t_table_growth_reports.htm
Regards
Girish Sharma
Maybe you are looking for
-
Hello Experts, Scenario: we plan finished goods in SNP & for component level we run MRP in ECC. I need to understand how MRP does planning in ECC based on SNP Planned order. Why MRP run does detailed scheduling on Finished goods planned order which r
-
Use of cash journal for down payment to venor through spical G/L indicator.
sir, Actually we want vendor down payment to vendor or from customer through special G/L indicator from Cash journal..
-
Conditional formatting of Totals in Pivot view
Hallo all, Am I able to format the totals based on some condition in version 11.1.1.6.6? I found some tutorials for older versions however the report XML has changed since then. I tried lots of variations but none of them worked as expected. Please f
-
Best way to access external hard drives wirelessly using AX?
I have an iBook G4 with an airport card and an iMac G3 with a D-link USB wireless adapter. Both work very well with my AX in networking, printing, using airtunes and accessing the internet. I can even see my external hard drive when it's plugged into
-
I am on this exercise because I am trying to print a report to local printer, and I am on the web based environment. I am trying to use the pdfp.exe available online to accomplish my task. /***********************************C O D E******************