Register a new portlet using API ?
I have problems registering af new Portlet using the portal UI, and are looking at ways of doing this programatically using the API's (wwpro_api_provider or other).
I have only found API functions for registering the Provider, not the individual portlets.
Have anybody found ways of doing this ?
Best regards
Martin Nielsen
Denmark
Martin,
If you are really developing your provider, ie, adding more portlets to it, please make sure you Refresh the provider in the Navigator page - Provider tab - over the link "Refresh". This will read the provider.xml file again. This is a good thing that you'd like to do it while you are developing your site (as the information in the provider.xml changes a lot).
Like Harsha said... you cannot register individual portlets.
I hope it helps...
Cheers,
Pedro.
Similar Messages
-
How to register a new MacBook using info I entered in the startup program?
I just opened my new MacBook for the first time and the startup program walked me through entering a bunch of information and connecting to my old iBook to transfer data. And the end of the process it tried to register me with Apple but my internet connection was down and it told me I couldn't register now. It left me instructions for how to register later using the info I already typed in. I did not write down these instructions. Instead I clicked 'continue' and lost them forever.
Does anyone know how to register after the startup program has quit? I found register.apple.com but it requires me to re-enter all my data. Ignoring from the fact that I've spent more time typing this question than I would have re-typing my name and address, it bugs me that I can't find the menu or dialog box that I could swear the startup program told me to use to send my saved info.
Any advice?
ThanksUsually there's a shortcut in your new user's Home folder called "Register with Apple" (or something similar to that) of the original registration fails. To open your user's Home folder, press Apple-shift-H from the Desktop. Can you see the shortcut there?
Just so you know, you don't need to register to receive any technical support or warranty support from Apple. Registering with Apple, I believe, helps their Marketing Department, but you don't need to register for support or help.
-Doug -
OIM 11g R2 - Creating a new role using API
Hi,
I am trying to create a new role in OIM 11g R2 using RoleManager API.The requirement is to provide "Role Owner" also while creating the role.May I know how to do that?.Thanks in advance.HashMap <String, String> groupMap = new HashMap <String, String> ();
groupMap.put("Groups.Group Name", groupName);
groupMap.put("Groups.Role Description", "Just for testing");
long groupKey = -1L;
try {
groupKey = goi.createGroup(groupMap);
logger.info("RESULT: Group with group_key '" + groupKey
+ "' has been successfully created");
} catch (tcAPIException e) {
logger.info("Creating client...."+e);
} catch (tcDuplicateGroupException ex) {
return getGroupKey(goi, groupName);
//logger.info(""+ex.toString());
} catch (tcInvalidAttributeException er) {
logger.info(""+er.toString());
I hope this really helps you,
Thiago Leoncio.
(Blog: thiagoleoncio) -
Error while creating new projects using api
Hello,
I am having error while creating projects using standard api, PA_PROJECT_PUB.CREATE_PROJECTS. The error I am having is as follow.
Source template ID is invalid.
===
My code is as follow:
SET SERVEROUTPUT ON SIZE 1000000
SET VERIFY OFF
define no=&amg_number
DECLARE
-- Variables used to initialize the session
l_user_id NUMBER;
l_responsibility_id NUMBER;
cursor get_key_members is
select person_id, project_role_type, rownum
from pa_project_players
where project_id = 1;
-- Counter variables
a NUMBER := 0;
m NUMBER := 0;
-- Variables needed for API standard parameters
l_commit VARCHAR2(1) := 'F';
l_init_msg_list VARCHAR2(1) := 'T';
l_api_version_number NUMBER :=1.0;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
-- Variables used specifically in error message retrieval
l_encoded VARCHAR2(1) := 'F';
l_data VARCHAR2(2000);
l_msg_index NUMBER;
l_msg_index_out NUMBER;
-- Variables needed for Oracle Project specific parameters
-- Input variables
l_pm_product_code VARCHAR2(30);
l_project_in pa_project_pub.project_in_rec_type;
l_key_members pa_project_pub.project_role_tbl_type;
l_class_categories pa_project_pub.class_category_tbl_type;
l_tasks_in pa_project_pub.task_in_tbl_type;
-- Record variables for loading table variables above
l_key_member_rec pa_project_pub.project_role_rec_type;
l_class_category_rec pa_project_pub.class_category_rec_type;
l_task_rec pa_project_pub.task_in_rec_type;
-- Output variables
l_workflow_started VARCHAR2(100);
l_project_out pa_project_pub.project_out_rec_type;
l_tasks_out pa_project_pub.task_out_tbl_type;
-- Exception to call messag handlers if API returns an error.
API_ERROR EXCEPTION;
BEGIN
-- Initialize the session with my user id and Projects, Vision Serves (USA0
-- responsibility:
select user_id into l_user_id
from fnd_user
where user_name = 'SSHAH';
select responsibility_id into l_responsibility_id
from fnd_responsibility_tl
where responsibility_name = 'Projects Implementation Superuser';
pa_interface_utils_pub.set_global_info(
p_api_version_number => l_api_version_number,
p_responsibility_id => l_responsibility_id,
p_user_id => l_user_id,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status);
if l_return_status != 'S' then
raise API_ERROR;
end if;
-- Provide values for input variables
-- L_PM_PRODUCT_CODE: These are stored in pa_lookups and can be defined
-- by the user. In this case we select a pre-defined one.
select lookup_code into l_pm_product_code
from pa_lookups
where lookup_type = 'PM_PRODUCT_CODE'
and meaning = 'Conversion';
-- L_PROJECT_IN: We have to provide values for all required elements
-- of this record (see p 5-13, 5-14 for the definition of the record).
-- Customers will normally select this information from some external
-- source
l_project_in.pm_project_reference := 'AGL-AMG Project &no';
l_project_in.project_name := 'AGL-AMG Project &no';
l_project_in.created_from_project_id := 1;
l_project_in.carrying_out_organization_id := 2864; /*Cons. West*/
l_project_in.project_status_code := 'UNAPPROVED';
l_project_in.start_date := '01-JAN-11';
l_project_in.completion_date := '31-DEC-11';
l_project_in.description := 'Trying Hard';
l_project_in.project_relationship_code := 'Primary';
-- L_KEY_MEMBERS: To load the key member table we load individual
-- key member records and assign them to the key member table. In
-- the example below I am selecting all of the key member setup
-- from an existing project with 4 key members ('EE-Proj-01'):
for km in get_key_members loop
-- Get the next record and load into key members record:
l_key_member_rec.person_id := km.person_id;
l_key_member_rec.project_role_type := km.project_role_type;
-- Assign this record to the table (array)
l_key_members(km.rownum) := l_key_member_rec;
end loop;
-- L_CLASS_CATEGORIES: commented out below should fix the error we get
-- because the template does not have an assigment for the mandatory class
-- 'BAS Test'
l_class_category_rec.class_category := 'Product';
l_class_category_rec.class_code := 'Non-classified';
-- Assign the record to the table (array)
l_class_categories(1) := l_class_category_rec;
-- L_TASKS_IN: We will load in a single task and a subtask providing only
-- the basic fields (see pp. 5-16,5-17,5-18 for the definition of
-- the task record)
l_task_rec.pm_task_reference := '1';
l_task_rec.pa_task_number := '1';
l_task_rec.task_name := 'Construction';
l_task_rec.pm_parent_task_reference := '' ;
l_task_rec.task_description := 'Plant function';
-- Assign the top task to the table.
l_taskS_in(1) := l_task_rec;
-- Assign values for the sub task
l_task_rec.pm_task_reference := '1.1';
l_task_rec.pa_task_number := '1.1';
l_task_rec.task_name := 'Brick laying';
l_task_rec.pm_parent_task_reference := '1' ;
l_task_rec.task_description := 'Plant building';
-- Assign the subtask to the task table.
l_tasks_in(2) := l_task_rec;
-- All inputs are assigned, so call the API:
pa_project_pub.create_project
(p_api_version_number => l_api_version_number,
p_commit => l_commit,
p_init_msg_list => l_init_msg_list,
p_msg_count => l_msg_count,
p_msg_data => l_msg_data,
p_return_status => l_return_status,
p_workflow_started => l_workflow_started,
p_pm_product_code => l_pm_product_code,
p_project_in => l_project_in,
p_project_out => l_project_out,
p_key_members => l_key_members,
p_class_categories => l_class_categories,
p_tasks_in => l_tasks_in,
p_tasks_out => l_tasks_out);
-- Check the return status, if it is not success, then raise message handling
-- exception.
IF l_return_status != 'S' THEN
dbms_output.put_line('Msg_count: '||to_char(l_msg_count));
dbms_output.put_line('Error: ret status: '||l_return_status);
RAISE API_ERROR;
END IF;
-- perform manual commit since p_commit was set to False.
COMMIT;
--HANDLE EXCEPTIONS
EXCEPTION
WHEN API_ERROR THEN
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
WHEN OTHERS THEN
dbms_output.put_line('Error: '||sqlerrm);
FOR i IN 1..l_msg_count LOOP
pa_interface_utils_pub.get_messages(
p_msg_count => l_msg_count,
p_encoded => l_encoded,
p_msg_index => i,
p_msg_data => l_msg_data,
p_data => l_data,
p_msg_index_out => l_msg_index_out);
dbms_output.put_line('ERROR: '||to_char(l_msg_index_out)||': '||l_data);
END LOOP;
rollback;
END;
===
Msg_count: 1
Error: ret status: E
ERROR: 1: Project: 'AGL-AMG Project 1123'
Source template ID is invalid.
PL/SQL procedure successfully completed.I was using a custom Application, which had a id other then 275 (which belongs to Oracle projects)
-
my computer will on itunes said that it will not use my new ipod touch because it says that service is not started. I have registered my new ipod touch and am trying to download stuff from my itunelibrary. Ps help!
Try:
iPhone, iPad, iPod touch: How to restart the Apple Mobile Device Service (AMDS) on Windows -
I got a new iphone 5c for Xmas and my laptop is registered with my iphone 4, which I no longer use or have hence the new phone lol. How do I remove the old info and register my new phone? Will it let me?
You do not register the phone with the laptop. If you are using the same Apple ID on the new phone as the old, you will have no trouble. Connect the phone and you can restore from a backup of the old phone, or just sync your new phone if it is already set up, with the laptop, managing your content in iTunes.
-
How to create a new User / Contact using APIs
I am not able to figure out how to create a new User / Contact in WLPS using APIs
. Is there a factory class ?
Thanks,
AJHi Bala,
Try using these function modules
SUSR_BAPI_USER_CREATE
BAPI_USER_CREATE
BAPI_USER_CREATE1
BAPI_USER_INTERNET_CREATE ( This internally calls BAPI_USER_CREATE1)
Please read the FM documentation for more information. -
Why can't I make a purchase from my new IPod using a new credit card which is different from the one I have registered with iTunes before ?
You can only use one credit card to one Apple ID.
-
When I try to sign in I get "your acct is inactive" message and no info on how to activate it. When I try to register a new acct, I can't use my email address b/c its associated w/ my "inactive" acct. So I opened a new email acct in order to register a new FF acct.
The original problem I have concerns ReminderFox in FF7.0.1, Windows 7
It's there but I can't enter any notes/reminders in it??That can happen if you have used the account for quite some time.
Try to post a request to reactivate on the Contributors forum if you can't set a new password.
*https://support.mozilla.com/users/pwreset
*https://support.mozilla.com/forums/contributors -
How to register a new docicon/progid using CSOM/SharePoint Client object model
I know how to register a new file-type icon in SharePoint 2013 by modifying docicon.xml,
but is it possible via any sort of web-based API? Specifically I'm trying to do it for a SharePoint Online/office 365 site.Hi Dylan,
For SharePoint Online, the docicon.xml is stored in the SharePoint online Server and there is no such Web API could modify the xml file directly, so there is no easy way to achieve it.
As a workaround, you can add some JavaScript and Jquery in the master page to modify the file type icon to the new one.
<script>
var IMGs = document.getElementsByTagName("IMG")
for (var i=0; i<IMGs.length; i++)
var alt=IMGs[i].alt;
if (alt.substring(alt.length-4,alt.length)==".pdf")
IMGs[i].src="/yourlibrary/yourimage.gif";
</script>
Here is a similar thread for your reference:
https://social.technet.microsoft.com/forums/msonline/en-US/bf5ff648-eefb-4084-8204-9519efaf50e7/modifying-dociconxml-on-sharepoint-online
Best Regards
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Zhengyu Guo
TechNet Community Support -
How can i get getwayed url string using pluggable nav in news portlet?
hi.
How can i get getwayed url string using pluggable nav in news portlet?
A code just like below is what I want.
<param value="param=http://.../portal/server.pt/gateway/PTARGS_.../http/...">
I tryed the following, but didn't work as I wanted.
1.<param value="<pcs:valueexpr='var'/>">
-> transformed. but I want the prefix 'param=' in the enquoted string's too.
2. <param value="param=<pcs:valueexpr='var'/>">
-> not transformed.
Any idea?
HiroyukiHi all,
We have HPROF functionality in our latest roadmap, so you will see that feature in our next major release called JRockit R28.
I recommend, above from the MemLeak documentation suggested by Makiey, the following information on how to use JRockit tools.
Performance Tuning & Profiling:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_02.html
Using JRockit tools:
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_03.html
Diagnostics & Troubleshooting
http://download.oracle.com/docs/cd/E13150_01/jrockit_jvm/jrockit/geninfo/diagnos/part_04.html
Best Regards,
Tuva
JRockit PM -
How do I register my new iPhone 6+ on ITunes Match. I have been using match for some time successfully on iPad and previous iPhone 5. I keep being asked to purchase a new subscription on the Settings>Music settings.
Hhave you signed into iTunes store using the same Apple id that you use for iTunes match?
jim -
[Application Insights] Fail to create new application using REST API
Hi,
I'm trying to create new application in Application Insights using the REST API.
I followed the instructions on
this page, but keep getting '404 Not Found', with the following error stream:
"{"error":{"code":"InvalidResourceType","message":"The resource type could not be found in the namespace 'microsoft.insights' for api version '2014-04-01'."}}"
The http method I'm using is: PUT
The request URI is:
"https://management.azure.com/subscriptions/some_real_subscription_id/resourceGroups/yonisha-new-rg/providers/microsoft.insights/component/yonisha-new-app?api-version=2014-04-01".
Can you please advice what am I doing wrong?
Few things:
I tried both with existing/non-existing resource group.
I set the Content-Length header to '0' (otherwise the server returns an error the the length is required).Try the API Version "2014-08-01" and also make sure you are sending a location of "Central US" (its the only location available right now). An example of a PowerShell call that works is below. I would also suggest checking
out the new https://resources.azure.com/ which can help you construct the REST call.
New-AzureResource -Name TestAppInsights -ResourceGroupName TestRG -ResourceType "Microsoft.Insights/Components" -Location "Central US" -ApiVersion "2014-08-01" -
Portal API's to display "page published as a portlet" using pl/sql
I have a custom pl/sql portlet that we have developed. We want to programatically display the contents of another portlet which is a "portal page published as a portlet". I know when you have a provider portlet you can simply call it like this:
portal.provider_name.show();
But how do you display a page published as a portlet using portal API's?Nobody has a clue?
-
How to create a new channel for a role or an organization using API
Hi all,
I tryed to create a new channel using the method createChannel(...)+ in the class ContainerProviderContext+ of the package com.sun.portal.providers.context+ and everything is fine. The channel is created under the display profile of the authenticated user who asked for the new channel.
But I'd like to create new channels for other users/roles/organizations. Does anybody know how to do that???
Thanks in advance.Hi Juan,
Yes you can use JDBC adapter to integrate with DB2 but you need to deploy the DB2 drivers.
Possible options to integrate with DB2 are :
We can integrate DB2 system with XI using different methods :
a)For batch mode we can work with standard file adapter of XI
b)Install MQ Series and use JMS Adaptersto send and receive messages with DB2
c)Use the JDBC Adapters to directly write to the DB2 Database.These is for
incoming interfaces
d) Third Party Adapters provided by iway can also be utilized ,but it requires a separate license
regards
Gangaprasad
Maybe you are looking for
-
L512 Wont Boot , Splash Screen then stuck blank screen and Fan in full throttle
I was using the laptop, then it went to suspend mode due normal timeout. When it came back, the fan start to spin full throttle but it was functionating beside that, normally. I restarted but then it never boot again. This is the process where it ge
-
Linking to a phone dialer in Muse
In the new videos about how to create mobile versions of your site, both instructors show that you can add a "click to call" feature to the phone number. This allows the person visiting the site to just tap on the phone number to bring up the phone's
-
When Trying to download apps the message 'We could not complete your iTunes store request. There is not enough memeory available. There was an error in the iTunes store. Please try again later' Appears. This message has been appearing since last wee
-
I let my brother borrow my 8130 for a day and ever since then my call logs, messages, and emails are all automatically deleted once a day. I dont know how to disable this feature. Any suggestions? Solved! Go to Solution.
-
Swaping 2 variables using function
how do i write a function that swaps two variables in java?