Create a ThreadQueue programatically
Is there any way to create ExecuteQueue in weblogic 8.1 programatically.
As we know weblogic create ExecuteQueue for us on the basis of config.xml, I want to create ThreadQueue thru my program and use it in my program which runs inside app server.
This requirment is coming from the fact that inside app server its not recommended to create new thread/threadPool. So i was looking for some ways to create ExecuteQueue in weblogic thru my program.
Appreciate your time.
Matt,
I'm the type of guy that voids the warrenty on everything i buy . I'm also completely an amature so even if I lost my catalog, it would just be some frustration and swearing on my end. That being said, I do go backup crazy with daily backups through Acronis True Image, and weekly backups through lightroom. Oh and did I mention these backups are copied across 3 different computers?
Rob,
I did write another plugin that used sql to query the catalog so I did know that you can't use it while Lightroom has the catalog open. In my previous plugin i got around the issue by having it use the latest backup catalog to do the query on (it's only SELECT statements). In this case I think I'll turn it into a launcher so it runs before every time you start lightroom. I'm really working on this just for me, if I end up with something that at least half works and others are interested I would certainly share with the community
Thanks!
Similar Messages
-
Issue while creating ADF Table programatically
Hi,
I am trying to create a table programatically...And i implemented like below:
RichTable phoneTable = new RichTable();
phoneTable.setEmptyText("No Phone Details yet");
getContactPhone(contactObj.getPhone());
phoneTable.setValue(contactObj.getPhone());
// contactObj.getPhone() is a ArrayList<TelephoneBOD> in pojo Object...
// Which is taken from a Object returned from DataControl Method (Captured in pageFlowScope)
phoneTable.setVar("row");
// Add Columns
RichColumn column = new RichColumn();
column.setHeaderText("Type");
column.setId("phoneType");
column.setAlign("right");
column.setWidth("100");
// Set output.
RichOutputText output = new RichOutputText();
output.setValue("#{row.phoneType}");
// Add output into column.
column.getChildren().add(output);
// Add column into table.
phoneTable.getChildren().add(column);When i try to implement like this i am getting fllowing error:
popup:
ZIP_STATE_FAILED
ADF_FACES-60097:For more information, please see the server's error log for an entry beginning with: ADF_FACES-60096:Server Exception during PPR, #2log:
Caused By: java.io.NotSerializableException: org.ieee.internal.ws.proxy.conf.types.TelephoneBOD
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.ArrayList.writeObject(ArrayList.java:570)
at sun.reflect.GeneratedMethodAccessor252.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:239)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at org.apache.myfaces.trinidad.component.TreeState.writeExternal(TreeState.java:241)
at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1421)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1390)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1338)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1146)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)I think this is happening because i am not serializing the object passing to Table. If this is the Reason.. How to serialize the object?
Or i am missing something in the code?
Thanks
Thoom
Edited by: User007 on Aug 31, 2011 1:47 PM
Edited by: User007 on Aug 31, 2011 1:47 PMThanks Timo.. for simple solution.
Actually.. TelephoneBOD is auto-generated on creation of web service proxy from web service.
I don't think.. updating those Java files directly is a best practice. Because they will be changing if there is any change in web service schema..
You think there is any other way to do so?
Thanks
Thoom -
Create Organization Data programatically
I am using ALBPM 5.7 Studio and trying to create Organization data programatically - OU, Participant, Role etc.
I am able to fetch data but not able to create OU.
For the following code
DirOrganizationalUnit dirOrgUnit;
dirOrganizationalUnit = dirOrgUnit.create(session : Fuego.Fdi.DirectorySession.currentEngineSession, name : "MT", description : "Michigan Transport");
I get the following exception
A component failed while executing activity '/CreateOrgData#Default-1.0/CreateOU' (BP-method CreateOU) over instance '/CreateOrgData#Default-1.0/5/0'.
Details:
The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
Caused by: java.lang.NullPointerException
fuego.lang.ComponentExecutionException: The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1063)
at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:391)
at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:483)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:618)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:54)
at fuego.metadata.Activity.execute(Activity.java:1022)
at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
at fuego.server.execution.ToDoItem.run(ToDoItem.java:530)
at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
Caused by: java.lang.NullPointerException
at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:229)
at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
... 27 moreDont insert values directly in dB as you have to update multiple dependent tables in case you start doing that way. Check this thread for available api to create an organization
Creating Organizations using API, OIM 11G
Edited by: Durgaprasad on Jan 28, 2013 1:20 AM -
Create a Stack programatically
I'd like to be able to create a stack programatically, but I'm having some problems with that. I have found these 2 possibilities, but both have problems I have not been able to work around:
1) Use catalog:addPhoto to create the stack
- Problem: The photos i want to use in the stack are both already loaded in the catalog. Running addPhoto on a photo that is already in the catalog throws an error, and I can't find anyway to remove the photo from the catalog without deleting it.
2) Modify all stack related RawMetadata
- Problem: stack related metadata keys are not valid in the SetRawMetadata function
If anyone has any other ideas, or solutions to either of the problems about it would be much appreciated.
Thanks
BrianMatt,
I'm the type of guy that voids the warrenty on everything i buy . I'm also completely an amature so even if I lost my catalog, it would just be some frustration and swearing on my end. That being said, I do go backup crazy with daily backups through Acronis True Image, and weekly backups through lightroom. Oh and did I mention these backups are copied across 3 different computers?
Rob,
I did write another plugin that used sql to query the catalog so I did know that you can't use it while Lightroom has the catalog open. In my previous plugin i got around the issue by having it use the latest backup catalog to do the query on (it's only SELECT statements). In this case I think I'll turn it into a launcher so it runs before every time you start lightroom. I'm really working on this just for me, if I end up with something that at least half works and others are interested I would certainly share with the community
Thanks! -
Is it possible to create characteristic hierarchies programatically?
Hi all,
I have a BW 3.0b system and want to create characteristic hierarchies programatically? Is this possible?
I can find BAPIs to programatically create cubes, infoobjects, etc., but not hierarchies.
Thanks! Points will be awardedHi DAVID,
Please evaluate FMs from BMEN function group and the following FMs:
COM_HIERARCHY_CREATE
COM_HIERARCHY_UI_CREATE
COM_PME_HIERARCHIE_CREATE
RSA1_HIERARCHY_0SOURCE_CREATE
RSAR_HIERARCHY_CREATE
RSHJ_HIERARCHY_CREATE
RSSH_HIERARCHY_CREATE
RSSHIER
RS_TREE_CREATE
Best regards,
Eugene -
How To create multiline NSTextField programatically?
Hi,
I want to create multiline NSTextField programatically. I successfully created single line textField.
Also i want to set text color? any help...
Thanks.https://discussions.apple.com/community/developer_forums
might be the best place to post this -
Create view link programatically
Hi all,
I am working on this weird requirement.
Basically, I have to create a detail table on a search resullt table. The search result is seeded search, for Item Advance search in Oracle PIM module which is not based upon a VO. The search result table is dynamically built at run time in the EgoItemSearchHelper class and that's where they build the search result VO (EgoItemSearchResultsVO).
Now, I need to access this VO in the controller class, and create a view link programatically between details table VO and this VO. The problem is since I do not have Impl class for the EgoItemSearchResultsVO, how do I accees the column that is the key attribute. Second I do not know how to create view link between the two VOs programatically.
Please help it's urgent.
ThanksPratap, My problem is the seeded VO is in seeded AM and my details VO will be in my custom AM, I don't know if we can have a view link between View objects that are in different AMs.
To bypass that problem, I tried to create a VO in the seeded AM programatically and then created a view link. Now since the AM is seeded, and I am adding my details VO to this AM programatically, I thought of creating a table also programatically on the detais VO.
In the end it does not work, I end up getting a show button on the main table, but when I click I get an error (Cannot find <null> attribute in the EOGITEMSEARCHRESULTVO) which is the seeded VO class. Unfortunately there is no boolean variable on the dynamic seeded VO, so don't know what to put in oatablebean.setDetailViewAttributeName("") method;
Any clues on this, appreciate all responses from the forum gurus.
ViewObject voEmp = oaapplicationmodule.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
ViewObject voEmp = am.createViewObject("MyEmp", "xxuss.oracle.apps.ego.item.eu.server.DetailsOrderLinesVO");
AttributeDef[] prjLinkAttrs = new AttributeDef[]{oaapplicationmodule.findViewObject("EgoItemSearchResultsVO").findAttributeDef("INVENTORY_ITEM_ID_B")};
System.out.println("definition for attr = "+ prjLinkAttrs[0]);
AttributeDef[] taskLinkAttrs = new AttributeDef[]{voEmp.findAttributeDef("InvId") };
ViewLink vl = am.createViewLinkBetweenViewObjects("MyLink3",
"DetailInv", // accessor name--more on this below
am.findViewObject("EgoItemSearchResultsVO"), // master
prjLinkAttrs, // department attributes
voEmp, // detail
taskLinkAttrs, // employee attributes
null); // assoc clause
System.out.println("view link =" + vl.getName());
OATableBean tb = (OATableBean)createWebBean(oapagecontext,TABLE_BEAN,null,"table");
tb.setViewUsageName("MyEmp");
OAMessageStyledTextBean beans = (OAMessageStyledTextBean)createWebBean(oapagecontext,MESSAGE_STYLED_TEXT_BEAN,OAWebBeanConstants.VARCHAR2_DATATYPE,"number");
beans.setPrompt("column1");
beans.setViewUsageName("MyEmp");
beans.setViewAttributeName("InvId");
tb.addIndexedChild(beans);
oatablebean.setDetail((OAWebBean)tb);
oatablebean.setDetailViewAttributeName("SelectFlag"); // I just tried this, SelectFlag is not a boolean attribute though, is there a way to create a boolean attribute programatically for seeded VO EGOITEMSEARCHRESULTVO and set it here, will it help
oatablebean.setAllDetailsEnabled(true); -
Create a session programatically (ie, outside of APEX).
Following on from this thread (Using APEX Collections outside of APEX? we have a requirement to be able to create a user session programatically in sqlplus etc, so that we can utilize the APEX collections framework in our existing developments.
The issue I am having is with getting the session populated in the wwv_flow_sessions$ table.
If I create a session first by opening a page in APEX then my processing works fine using that session id, the problem comes when I want to programatically create a new session.
I have tried the following (where l_session is the id of the session I grabbed from running an APEX page):
DECLARE
l_security_group_id NUMBER := apex_util.find_security_group_id('OUR_WORKSPACE');
l_session_id NUMBER := apex_custom_auth.get_next_session_id;
l_val VARCHAR2(4000);
v_arr wwv_flow_global.vc_arr2;
BEGIN
wwv_flow_api.set_security_group_id(l_security_group_id);
apex_application.g_flow_id := '1';
apex_custom_auth.define_user_session('USERNAME', l_session_id);
apex_custom_auth.post_login(p_uname => 'USERNAME', p_session_id => l_session_id); /*Added this as an after-thought but it made no difference*/
apex_collection.create_collection('XXTEST');
/*some more things after this but it never gets that far*/but I get the error:
ORA-02291: integrity constraint (FLOWS_030100.WWV_FLOW_COLLECTION_FK) violated - parent key not found
ORA-06512: at "FLOWS_030100.WWV_FLOW_COLLECTION", line 288
ORA-06512: at line 12Running v('SESSION') returns a value, so the session is being populated, it's just a corresponding record isn't inserted into wwv_flow_sessions$.
Is there any API to create such a session? If not, what are the implications of doing a manual insert into this table before processing and then removing the row afterwards?Ok, i see.
Why do you need the record in the session-table, does CREATE_COLLECTION require that?
I never created a Collection in a batch-job outside of APEX, but created/called an APEX Report. To "create" the session i used this code:
PROCEDURE initApexFromOutside
( i_app_name IN VARCHAR2
, i_page_id IN NUMBER
, i_apex_user IN VARCHAR2
IS
v_cgivar_name owa.vc_arr;
v_cgivar_val owa.vc_arr;
v_workspace_id NUMBER;
v_app_id NUMBER;
BEGIN
-- set up cgi environment
htp.init;
v_cgivar_name(1) := 'REQUEST_PROTOCOL';
v_cgivar_val(1) := 'HTTP';
owa.init_cgi_env
( num_params => v_cgivar_name.count
, param_name => v_cgivar_name
, param_val => v_cgivar_val
-- load apex IDs by application name
SELECT workspace_id,
application_id
INTO v_workspace_id,
v_app_id
FROM apex_applications
WHERE application_name=i_app_name;
-- set up apex workspace
wwv_flow_api.set_security_group_id(v_workspace_id);
-- set up apex session vars
apex_application.g_instance := wwv_flow_custom_auth.get_next_session_id;
apex_application.g_flow_id := v_app_id;
apex_application.g_flow_step_id := i_page_id;
-- "login"
apex_custom_auth.define_user_session
( p_user => i_apex_user
, p_session_id => apex_application.g_instance
wwv_flow_custom_auth_std.post_login
( p_uname => i_apex_user
, p_session_id => apex_application.g_instance
, p_flow_page => apex_application.g_flow_id
|| ':'
|| apex_application.g_flow_step_id
END initApexFromOutside;
PROCEDURE doInitApex(pUsername IN VARCHAR2)
IS
BEGIN
IF v('APP_ID') IS NULL
THEN
-- init apex environment
initApexFromOutside
( i_app_name => cAppName
, i_page_id => 1
, i_apex_user => pUsername
-- call show once because it sets additonal internal apex parameters
Apex_Application.show
( p_flow_id => Apex_Application.g_flow_id
, p_flow_step_id => Apex_Application.g_flow_step_id
, p_instance => Apex_Application.g_instance
-- show re-sets other parameters at the end. have to init again...
initApexFromOutside
( i_app_name => cAppName
, i_page_id => 1
, i_apex_user => pUsername
END IF;
END;Maybe this works for you, too.
brgds,
Peter
Blog: http://www.oracle-and-apex.com
ApexLib: http://apexlib.oracleapex.info
BuilderPlugin: http://builderplugin.oracleapex.info
Work: http://www.click-click.at -
Create Submit button programatically
Hi,
Can some body help me with creation of submit button programatically.under page button bar region(Existing region on page)
ThanksHi,
Please refer http://apps2fusion.com/apps/oa-framework/214-sample-code-add-submit-button-using-oa-framework-extension
before adding button to pagebutton bar first get handle to page button bar region, then create submit button through code and then add it to page button bar.
Regards,
Reetesh Sharma -
Create sub-pages programatically
Hi,
Is it possible to use the add_folder in PDK pl/sql api to create sub-pages to the root page of a content area programatically?
Thankshi,
this is the right function to create sub pages. for more information and an example check out:
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/pldoc_9026/wwsbr_api.html#function-add_folder
regards,
christian -
Create Resultset/Rowset programatically
How can I create a resultset/rowset programatically from scratch, without connecting to database. Actually I'm designing an N-tier intranet app. The page controller (JSP) has to pass the data of the HTTP request to the buiness tier in a generic form. As our business tier is using resultset for its methods (for efficiency and simplicity we avoided using a pure object oriented business tier whose objects have the state as their fields. Instead we have resultsets of the whole query that has the data of a single business transaction).
Is it possible to create rowset without database connection? How?You can do it using CachedRowSet:
import java.sql.*;
import javax.sql.*;
import sun.jdbc.rowset.*;
public class RowSetExample
public static void main(String args[])
try {
// create a new rowset and populate it...
sun.jdbc.rowset.CachedRowSet crs = new sun.jdbc.rowset.CachedRowSet();
sun.jdbc.rowset.RowSetMetaDataImpl rsmdi = new sun.jdbc.rowset.RowSetMetaDataImpl();
int colCount = 2;
rsmdi.setColumnCount(colCount);
rsmdi.setColumnDisplaySize(1, 5);
rsmdi.setColumnName(1, "ID");
rsmdi.setColumnType(1, java.sql.Types.INTEGER);
rsmdi.setColumnTypeName(1, "INTEGER");
rsmdi.setTableName(1, "MY_TABLE");
rsmdi.setAutoIncrement(1, false);
rsmdi.setSearchable(1, true);
rsmdi.setColumnDisplaySize(2, 20);
rsmdi.setColumnName(2, "NAME");
rsmdi.setColumnType(2, java.sql.Types.VARCHAR);
rsmdi.setColumnTypeName(1, "VARCHAR");
rsmdi.setTableName(2, "MY_TABLE");
rsmdi.setAutoIncrement(2, false);
rsmdi.setSearchable(2, true);
crs.setMetaData(rsmdi);
java.util.Map map = new java.util.HashMap();
map.put(new Integer(1), "AAA");
map.put(new Integer(2), "BBB");
map.put(new Integer(3), "CCC");
java.util.Iterator iter = map.entrySet().iterator();
while (iter.hasNext()){
java.util.Map.Entry entry = (java.util.Map.Entry) iter.next();
int idx = 0;
crs.moveToInsertRow();
crs.updateObject(1, entry.getKey());
crs.updateObject(2, entry.getValue());
crs.insertRow();
crs.moveToCurrentRow();
crs.beforeFirst();
while (crs.next()){
System.out.print(crs.getObject(1));
System.out.println(": " + crs.getObject(2));
}catch (SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
} -
Create Table Reagion Programatically
Want to create table region programatically
Also if you want to create a View object programatically--->
Then in process request of controller.
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule oam = pageContext.getApplicationModule(webBean);
String xxOnTheFlyVOQuery = "select description xxdesc from fnd_user ";
xxOnTheFlyVOQuery = xxOnTheFlyVOQuery + "where user_name = :1 ";
//First see if this VO is already attached to view object
ViewObject xxOnTheFlyViewObject = oam.findViewObject("xxFNDUserDescVO");
if(xxOnTheFlyViewObject == null)
xxOnTheFlyViewObject = oam.createViewObjectFromQueryStmt("xxFNDUserDescVO", xxOnTheFlyVOQuery);
xxOnTheFlyViewObject.executeQuery();
oracle.jbo.Row row = xxOnTheFlyViewObject.first();
//get the value of description column from View Object record returned
if(row != null)
String mSupHierarchyUsed = row.getAttribute(0).toString();
System.out.println("Result from Dynamic VO is =>" + mSupHierarchyUsed );
//Remove the view object, as this is no longer required
xxOnTheFlyViewObject.remove();
Thanks
--Anil -
How to create data type programati​cally
Hello,
we are writing a custom sequence editor that will generate TestStand sequence. I can populate the generated TS sequence sequence with steps using primitive arguments like Boolean, String, Number. Our test methods also use structures and I am having problem with programatically creating custom data type that matches C# struct similarly as one would do in SeqEdit.exe
I am assuming that there is something to do with Engine.NewDataType() and create new container, but then where to add the returned PropertyObject for it to be a type in the current sequence with a name?
RomanRay, that's great. This pointed me to right direction, thank you!
In case someone else needs this; The example worked fine from TestStand, but not from C# :
PropertyObjectFile[] typeFiles = MyEngine.GetTypePaletteFileList();
PropertyObjectFile typeFile = typeFiles[0];
TypeUsageList typeList = typeFile.TypeUsageList;
string whyNotValid = typeList.ValidateNewTypeName(name, false, out isValidName);
if (!isValidName)
return null;
PropertyObject newType = MyEngine.NewPropertyObject(PropertyValueTypes.PropValType_Container, false, "", 0);
newType.NewSubProperty("MyNum", PropertyValueTypes.PropValType_Number, false, "", 0);
newType.SetValNumber("MyNum", 0, 123.0);
newType.NewSubProperty("MyStr", PropertyValueTypes.PropValType_String, false, "", 0);
newType.SetValString("MyStr", 0, "AA");
newType.Name = name;
typeList.InsertType(newType, 0, TypeCategories.TypeCategory_CustomDataTypes);
typeFile.IncChangeCount();
typeFile.SaveFileIfModified(false);
SetValNumber and SetValString threw an exception on non-existing sub-property so I added the red lines.
There is one feature not mentioned in example - If you want to have the type in the sequence file instead of INI type files, it also works like this
PropertyObjectFile typeFile = MySequenceFile as PropertyObjectFile; -
To Create Opportunity Relationships Programatically
Hello Friends,
Here my requirement is to develop a report by which the relationships needto be builded.
I need to build below relations programatically to reflect in Relationship tab of Opportunity Transaction
i) One Source Opportunity to another Opportunity
ii) Source Opportunity to Sub-Opportuntiy
iii) Source Opportunity to Activity
iv)Lead to Opportunity.
On selection-screen I will have three fields a) Source Opportuntiy Number b) Type Of Linkage (Assigned, At Lower Level) c)Destination.
Could you pls share some pointers how to achieve this.Also please let me know if any BAPI's or Classes available in this regard.
Thank you.
Regards
VJHi Kitcha,
I m not very much clear about what u required exactly but if u want to create Opportunity transaction with same Customer and other data i.e. from A to B and vice versa you can simply use Copy Control for transaction.
SPRO->Customer Relationship Management->Transactions->Basic Settings->Copying Control for Business Transactions
Regards,
DD's -
IProcurement- create shopping categories programatically
I need to create a shopping category in iProcurement when I load an Item Category programatically. I thought the way was to just flip the Profile Option 'POR_AUTO_CREATE_SHOPPING_CAT' to Y in my program, but that doesn't seem to work. Any idea why?
Thanks.
UPDATE-
I added an item category with the profile option turned on to Y and it worked. So it just doesn't work when I flip it in the PL/SQL program. I need to know if I am able to do this programmatically.
Edited by: Jason ORCL on Jun 2, 2009 10:43 AMYou should be able to modify the controller in the underlying page to call the PLSQL to create the shopping category.
Maybe you are looking for
-
Red track button and mouse does not work sometimes on start up and after stand by mode
i recently downgraded my t61p from vista basic to xp pro. all the drivers were installed but my mouse doesn't seem to work consistently. if i turn it on, sometimes it doesnt move -- i then have to hit standby and see if it works after that.. somet
-
Sequential vs random disc access - is LR more of one than the other?
I'm deciding on a new build for photoediting and based on what I've read will be going with some SSD drives (one for OS/apps, one for the LR catalog, cache, previews and LR/PS work area). Edited photos will be taken off the SSD for long term storage
-
Changes to LZUXX are forbidden by SAP*
Hi, I copied the standard BAPI, when i trying to change the include LZTOP im able to change, but when i try to change the inlcude LZ***UXXX i am not able to do that i am getting a message "Changes to LZUXX are forbidden by SAP"* Any ideas to change t
-
This file appears to be damaged..HOW?
I type a lot of my stories and things in AppleWorks and I tried opening two of my files-but a window popped up that said "This file appears to be damaged and cannot be opened." How did this happen? I would really like to reopen this files so that I c
-
ITunes(10.6) can't transfer artwork to iPhone 4s(ios 5.1)
i just updated itunes to version 10.6 copied some songs from itunes to iPhone 4s noticed that no album artwork is on my iPhone while it present on iTunes then deleted all songs and videos on iphone and re-transfered entire music library but nothing w