How to sort taxonomy with Java api? Please Help
Can someone please help me out? I understand and can display the contents of a taxonomy. But I need it to be displayed in alphabetical order. Manual ordering does not exist for taxonomies. How do you sort a taxonomy in java?
The following snip of code can get the taxonomy and loop through it but isn't ordered correctly. Can some kind of comparator be used somehow? Points will be rewarded! Please help.
//Get connection to KMCM path
RID rid = RID.getRID(strPathToKMCM);
IResource resource = ResourceFactory.getInstance().getResource(rid, context);
ICollection collection = (ICollection) resource;
IResourceList children = collection.getChildren();
for (int i = 0; i < children.size(); i++){
IResource ir = children.get(i);
I'd also be interested to know how to do this.
I found this code section to sort by date, but couldn't change it to get it to work to sort alphabetically.
private void sortResouceListByDate(IResourceList resourceList) throws Exception {
// create property names to index properties
IPropertyName iPropSort = new PropertyName("http://sapportals.com/xmlns/cm", "modified");
//create a comparator to order the resource list
ResourcePropertyComparator rRPC = new ResourcePropertyComparator(iPropSort, false);
//order the resource list
resourceList.sort(rRPC);
Link where code was found:
https://forums.sdn.sap.com/thread.jspa?forumID=42&threadID=148468&messageID=1670970#1670970
We are using:
Portal 6.0.15.0.0
KM 6.0.15.4.0
Thanks!!
Similar Messages
-
Hi Mdm guru,
I have to sort the getHierarchy results.
In the MDM Data Manager is possible "Sort Entire Branch" (in the context menu).
My question: there is a method in the Java Api for this funtionality?
Best RegardsHi Rocco,
It depends upon <i>which</i> API you are using. The API <b>mdm4j</b> has a function
CatalogData.GetChildren()
which has a parameter for defining the sort field. So you can create your own recursive function which drills down through a hierarchy, creating each level sorted.
The class <b>SortDefinition</b> belongs to the "new" API <b>MDMJavaAPI</b>, but at present I do not see a way of gettting a sorted hierarchy with this API.
Walter -
How to program this in java? Please help
How to program this in java?
please explain steps, it has to come out like this:
example
input: 3b1w3b
output:
BBBWBBBimport java.io.*;
public class Test {
static java.io.PrintStream o = java.lang.System.out;
public static void main(String[] args)throws Exception {
BufferedReader BR = new BufferedReader(new InputStreamReader(System.in));
System.out.print("Enter plot for printing: ");
String s = BR.readLine();
char[] cs = s.toLowerCase().toCharArray();
for(int i=0, j=0; i < cs.length-0x1; i+=0x2, j=0)
while(j++ < (int)(cs[i]-0x30))
o.print((char)(cs[i+0x1]-0x20));
I tried changeing it to this so I can enter my own string, but I want to change it some more so that it can enter multiple input separated by space, so that it can form a sort of picture line by line. I tried using tolkenizer but I get errors. I dont know how to use tolkenizer properly can anyone please TEACH. you dont have to tell how or give me the code if you dont want to. yes I know Im a noob and I dont know java as good as everyone here, If everyone thinks I don't deserve help then DON'T help, I'm just trying to learn programming -
How to Integrate Portal with SAP OFFICE(Please help me)
Hello Experts,
I have doubts on Portal and SAP office..
Please find the
1) How to show the document info record(DIS,like cv03n or cv04n) in Portal
Please let me know the step by step procedure...
2) After showing the documnet info record(DIS) in the portal,If user clicks on
original attachmnet of documnet info record(DIS) it shoud show the drawing
or diagam in the word or any uformat using SAP OFFCIE:
How to Integrate Portal with SAP OFFICE
Please let me know the details.
Please mail me any documents related to this to my mail id
[email protected]
Thnaks in Advance
Preethi DSouzaHi Dharani,
Please check this thread.
How will do the connectivity with SAP and Non Sap System
Also ensure you avoid cross-posting. This has been mentioned to you multiple times earlier.
Cheers,
Sandeep Tudumu -
hi apple am new user to apple i just bought i phone 4s and i set up passowrd and forgot it how and the iphone is not responding now how can i deal with this broblem please helpe
iPhone User Guide (For iOS 5.1 Software)
-
Creating Taxonomy with Java API
Hi all,
I am trying to add a Taxonomy structure like the collowing with the java API. But i am unable to add the structure, only the first folder is added.
/taxonomy/countries/us
/en
/fr
I am using the following code:
IClassificationIndex index = (IClassificationIndex)indexService.getIndex(indexName);
index.addTaxonomy("countries/us", new ResourceContext(user)) ;
Any help would be very nice.I'd also be interested to know how to do this.
I found this code section to sort by date, but couldn't change it to get it to work to sort alphabetically.
private void sortResouceListByDate(IResourceList resourceList) throws Exception {
// create property names to index properties
IPropertyName iPropSort = new PropertyName("http://sapportals.com/xmlns/cm", "modified");
//create a comparator to order the resource list
ResourcePropertyComparator rRPC = new ResourcePropertyComparator(iPropSort, false);
//order the resource list
resourceList.sort(rRPC);
Link where code was found:
https://forums.sdn.sap.com/thread.jspa?forumID=42&threadID=148468&messageID=1670970#1670970
We are using:
Portal 6.0.15.0.0
KM 6.0.15.4.0
Thanks!! -
How to get started with SNMP.. please help me
I am completely new in SNMP but I really really want to learn it so please help me :)
I have tried to type snmpget and snmpwalk in the prompt with some proper device �and OID information and I get some information back (do not really understand the return massages though).
But I would like to make a manager program in java that calls some network-clients and report the return messages. I would like to use snmp4j (is this a good choice?).
If somebody have some piece of simple code that sets up a manager- client snmp program, I would be so happy to see it.
Thanks a lot in advance.
(If anyone knows some good tutorials or anything that can help me get started I will also appreciate this)try using Delete Messages Once Read or write ur own module for achieving the same or use SAP Connect for acheiving the same..if ur intention is to just read mails..!
-
Nokia 8800 how to use it with iSync? please help me
Hi there! my iSync say's that my nOkia 8800 is not supported even in the support isync page says that it works with, how do i install the isync in my 8800 black? thanks a lot for your help
hello, if you suspect you have adware on your system, please perform all these steps:
# [[Reset Firefox – easily fix most problems|reset firefox]] (this will keep your bookmarks and passwords)
# afterwards go to the firefox menu ≡ > addons > extensions and in case there are still extensions listed there, disable them.
# finally run a full scan of your system with different security tools like the [http://www.malwarebytes.org/products/malwarebytes_free free version of malwarebytes] and [http://www.bleepingcomputer.com/download/adwcleaner/ adwcleaner] to make sure that adware isn't present in other places of your system as well.
[[Troubleshoot Firefox issues caused by malware]] -
Issue with Java Decompiler, please help
I'm using Mocha to decompile a *.class file from the standard OAF. I'd like to reuse some logic which Oracle has previously developed. I'd like to decompile DetailDataInputCO.class but Mocha errors out with "Ignoring field attribute Synthetic".
If anyone has a good decompiler, could you please decompile a class file for me. Please contact me at [email protected] and I can send you the file. It would be greatly appreciated.
Thanks,
-Scott// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3)
// Source File Name: DetailDataInputCO.java
package oracle.apps.ap.oie.webui;
import com.sun.java.util.collections.HashMap;
import java.io.Serializable;
import java.util.Vector;
import oracle.apps.ap.oie.entry.AttendeeRuleUI;
import oracle.apps.ap.oie.server.DetailAMImpl;
import oracle.apps.ap.oie.utility.OIEConstants;
import oracle.apps.ap.oie.utility.OIEUtil;
import oracle.apps.fnd.common.MessageToken;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.flexj.*;
import oracle.apps.fnd.framework.*;
import oracle.apps.fnd.framework.webui.*;
import oracle.apps.fnd.framework.webui.beans.*;
import oracle.apps.fnd.framework.webui.beans.form.OAChoiceBean;
import oracle.apps.fnd.framework.webui.beans.form.OASubmitButtonBean;
import oracle.apps.fnd.framework.webui.beans.layout.*;
import oracle.apps.fnd.framework.webui.beans.message.*;
import oracle.apps.fnd.framework.webui.beans.nav.OANavigationBarBean;
import oracle.apps.fnd.framework.webui.beans.nav.OAPageButtonBarBean;
import oracle.apps.fnd.framework.webui.beans.table.*;
import oracle.cabo.ui.*;
import oracle.cabo.ui.beans.*;
import oracle.cabo.ui.beans.form.*;
import oracle.cabo.ui.beans.layout.*;
import oracle.cabo.ui.beans.message.MessageStyledTextBean;
import oracle.cabo.ui.beans.message.MessageTextInputBean;
import oracle.cabo.ui.beans.nav.NavigationBarBean;
import oracle.cabo.ui.beans.table.ColumnBean;
import oracle.cabo.ui.beans.table.TableBean;
import oracle.jbo.domain.Number;
// Referenced classes of package oracle.apps.ap.oie.webui:
// ExpensesCO, NavigationUtility
public class DetailDataInputCO extends OAControllerImpl
public void processRequest(OAPageContext oapagecontext, OAWebBean oawebbean)
if(oapagecontext.isLoggingEnabled(2))
oapagecontext.writeDiagnostics(this, "start processRequest", 2);
boolean flag = false;
super.processRequest(oapagecontext, oawebbean);
OAApplicationModule oaapplicationmodule = oapagecontext.getRootApplicationModule();
OAApplicationModule oaapplicationmodule1 = oapagecontext.getApplicationModule(oawebbean);
String s = (String)oaapplicationmodule.invokeMethod("getMultipleCurrenciesFlag");
String s1 = (String)oapagecontext.getTransactionValue("ApWebTaxEnable");
String s2 = (String)oapagecontext.getTransactionValue("PaymentCurrencyCode");
String s3 = (String)oapagecontext.getTransactionValue("ApWebDescFlexName");
String s4 = (String)oapagecontext.getTransactionValue("CCPage");
boolean flag2 = s4 == null || s4.equals("Y");
boolean flag3 = ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("Y") || ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("R");
String s5 = (String)oapagecontext.getTransactionValue("ApWebEnableGrantsAccounting");
boolean flag4 = flag3 && s5 != null && s5.equals("Y");
boolean flag5 = ((Boolean)oaapplicationmodule.invokeMethod("isVATEnabled")).booleanValue();
String _tmp = (String)oapagecontext.getTransactionValue("ApWebEnableLineLevelAccounting");
oapagecontext.getParameter("ButtonLink");
String s6 = "N";
oracle.apps.ap.oie.setup.OIESetup.Setup setup = (oracle.apps.ap.oie.setup.OIESetup.Setup)oaapplicationmodule.invokeMethod("getSetup");
OADescriptiveFlexBean oadescriptiveflexbean = null;
OAStackLayoutBean oastacklayoutbean = (OAStackLayoutBean)createWebBean(oapagecontext, "STACK_LAYOUT");
oawebbean.addIndexedChild(oastacklayoutbean);
OATableLayoutBean oatablelayoutbean = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
oastacklayoutbean.addIndexedChild(oatablelayoutbean);
oatablelayoutbean.setWidth("100%");
OASpacerRowBean oaspacerrowbean = (OASpacerRowBean)createWebBean(oapagecontext, "SPACER_ROW");
if(flag5)
OARowLayoutBean oarowlayoutbean = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean);
OACellFormatBean oacellformatbean = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean.addIndexedChild(oacellformatbean);
OARawTextBean oarawtextbean = (OARawTextBean)createWebBean(oapagecontext, "RAW_TEXT");
oacellformatbean.addIndexedChild(oarawtextbean);
oacellformatbean.setHAlign("start");
oacellformatbean.setColumnSpan(2);
oarawtextbean.setText(oapagecontext.getMessage("SQLAP", "OIE_MERCHANT_HEADING", new MessageToken[0]));
oarawtextbean.setStyleClass("OraInstructionText");
oatablelayoutbean.addIndexedChild(oaspacerrowbean);
OARowLayoutBean oarowlayoutbean1 = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean1);
OACellFormatBean oacellformatbean1 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean1.addIndexedChild(oacellformatbean1);
OATableLayoutBean oatablelayoutbean1 = (OATableLayoutBean)createWebBean(oapagecontext, oawebbean, "DRRequiredIconText");
oacellformatbean1.addIndexedChild(oatablelayoutbean1);
oatablelayoutbean.addIndexedChild(oaspacerrowbean);
OARowLayoutBean oarowlayoutbean2 = (OARowLayoutBean)createWebBean(oapagecontext, "ROW_LAYOUT");
oatablelayoutbean.addRowLayout(oarowlayoutbean2);
OACellFormatBean oacellformatbean2 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
OACellFormatBean oacellformatbean3 = (OACellFormatBean)createWebBean(oapagecontext, "CELL_FORMAT");
oarowlayoutbean2.addIndexedChild(oacellformatbean2);
oarowlayoutbean2.addIndexedChild(oacellformatbean3);
OATableLayoutBean oatablelayoutbean2 = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
OATableLayoutBean oatablelayoutbean3 = (OATableLayoutBean)createWebBean(oapagecontext, "TABLE_LAYOUT");
oacellformatbean2.addIndexedChild(oatablelayoutbean2);
oacellformatbean2.setVAlign("top");
oacellformatbean3.addIndexedChild(oatablelayoutbean3);
oacellformatbean3.setVAlign("top");
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailStartDate"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailDailyRate"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(createWebBean(oapagecontext, oawebbean, "DetailDays"));
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayReceiptAmount");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oamessagestyledtextbean.setText(oamessagestyledtextbean.getText(oapagecontext) != null ? oamessagestyledtextbean.getText(oapagecontext) + " " : "");
if(oamessagestyledtextbean.getText(oapagecontext) != null && !oamessagestyledtextbean.getText(oapagecontext).equals(""))
OAStyledTextBean oastyledtextbean = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oastyledtextbean.setViewUsageName("OneReceiptBasedVO");
oastyledtextbean.setViewAttributeName("ReceiptCurrencyCode");
oastyledtextbean.setCSSClass("OraDataText");
oamessagestyledtextbean.setEnd(oastyledtextbean);
} else
OAMessageTextInputBean oamessagetextinputbean = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailReceiptAmount");
oatablelayoutbean2.addIndexedChild(oamessagetextinputbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
if(s.equals("N"))
OAStyledTextBean oastyledtextbean1 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oastyledtextbean1.setViewUsageName("OneReceiptBasedVO");
oastyledtextbean1.setViewAttributeName("ReceiptCurrencyCode");
oastyledtextbean1.setCSSClass("OraDataText");
oamessagetextinputbean.setEnd(oastyledtextbean1);
} else
OAChoiceBean oachoicebean = (OAChoiceBean)createWebBean(oapagecontext, "POPLIST", null, "CurrencyPopList");
oachoicebean.setViewUsageName("OneReceiptBasedVO");
oachoicebean.setViewAttributeName("ReceiptCurrencyCode");
oachoicebean.setPickListViewObjectDefinitionName("oracle.apps.ap.oie.server.CurrenciesVO");
oachoicebean.setListValueAttribute("CurrencyCode");
oachoicebean.setListDisplayAttribute("CurrencyCodeName");
OAStaticStyledTextBean oastaticstyledtextbean = (OAStaticStyledTextBean)createWebBean(oapagecontext, oawebbean, "Currency");
oachoicebean.setShortDesc(oastaticstyledtextbean.getLabel());
oamessagetextinputbean.setEnd(oachoicebean);
if(flag2 || s.equals("N"))
OAMessageStyledTextBean oamessagestyledtextbean1 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayExchRate");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
} else
OAMessageTextInputBean oamessagetextinputbean1 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailExchRate");
oatablelayoutbean2.addIndexedChild(oamessagetextinputbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oamessagetextinputbean1.setRequired("yes");
OAMessageStyledTextBean oamessagestyledtextbean2 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailReimbursAmt");
oatablelayoutbean2.addIndexedChild(oamessagestyledtextbean2);
if(oamessagestyledtextbean2.getText(oapagecontext) != null)
oamessagestyledtextbean2.setText(oamessagestyledtextbean2.getText(oapagecontext) + " " + s2);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
OAMessageCheckBoxBean oamessagecheckboxbean = (OAMessageCheckBoxBean)createWebBean(oapagecontext, oawebbean, "DetailReceiptMissing");
oatablelayoutbean2.addIndexedChild(oamessagecheckboxbean);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
Integer integer = (Integer)oaapplicationmodule.invokeMethod("getNumberOfTaxCodes");
String s7 = (String)oaapplicationmodule1.invokeMethod("getTaxCodeUpdateable");
OAWebBeanDataAttribute oawebbeandataattribute;
if(s7 == null || s7.equals("Y"))
oawebbeandataattribute = (OAWebBeanDataAttribute)createWebBean(oapagecontext, oawebbean, "DetailTaxCode");
else
oawebbeandataattribute = (OAWebBeanDataAttribute)createWebBean(oapagecontext, oawebbean, "DetailTaxCodeDisplay");
OAMessageCheckBoxBean oamessagecheckboxbean1 = (OAMessageCheckBoxBean)createWebBean(oapagecontext, oawebbean, "DetailAmtInclTax");
if(s1 != null && s1.equals("Y") && integer.intValue() > 0)
oatablelayoutbean2.addIndexedChild(oamessagecheckboxbean1);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
oatablelayoutbean2.addIndexedChild(oawebbeandataattribute);
oatablelayoutbean2.addIndexedChild(oaspacerrowbean);
String s8 = (String)oaapplicationmodule1.invokeMethod("getExpTypeWebPrompt");
Object obj = null;
Object obj1 = null;
Boolean boolean1 = (Boolean)oaapplicationmodule1.invokeMethod("isExpTypeInPoplist");
if(flag4 && !boolean1.booleanValue())
oaapplicationmodule1.invokeMethod("resetWebParameterId");
String s11 = (String)oaapplicationmodule1.invokeMethod("getAwardNumber");
MessageToken amessagetoken[] = {
new MessageToken("EXP_TYPE", s8), new MessageToken("AWARD_NUM", s11 != null ? s11 : "")
OAException oaexception = new OAException("SQLAP", "OIE_DEFAULT_EXPENDITURE_TYPE", amessagetoken, (byte)1, null);
oaexception.setApplicationModule(oaapplicationmodule1);
oapagecontext.putDialogMessage(oaexception);
OAMessageLovInputBean oamessagelovinputbean = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailProjectNumber");
OAMessageLovInputBean oamessagelovinputbean1 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailTaskNumber");
if(flag3)
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean1);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
String s12 = (String)oaapplicationmodule1.invokeMethod("getProjectNumber");
if(s12 != null)
oamessagelovinputbean1.setRequired("yes");
else
oamessagelovinputbean1.setRequired("no");
if(flag4)
OAMessageLovInputBean oamessagelovinputbean2 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "DetailAwardNumber");
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean2);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oatablelayoutbean3.addIndexedChild(createWebBean(oapagecontext, oawebbean, "RBWebParam"));
if(s3 != null && ("Y".equals(s3) || "B".equals(s3)))
oadescriptiveflexbean = (OADescriptiveFlexBean)createWebBean(oapagecontext, oawebbean, "DetailFlex");
oatablelayoutbean3.addIndexedChild(oadescriptiveflexbean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(flag4)
OAStyledTextBean oastyledtextbean2 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oatablelayoutbean3.addIndexedChild(oastyledtextbean2);
String s9 = oapagecontext.getMessage("SQLAP", "OIE_EXPENDITURE_TYPE_TIP", null);
oastyledtextbean2.setText(oapagecontext, s9);
oastyledtextbean2.setStyleClass("OraInlineInfoText");
OAWebBeanDataAttribute oawebbeandataattribute1 = null;
if(oapagecontext.getParameter("_FORMEVENT") == null || !oapagecontext.getParameter("_FORMEVENT").startsWith("FLEX_CONTEXT_CHANGED"))
if(!boolean1.booleanValue() && s8 != null)
oadescriptiveflexbean.setFlexContext(oapagecontext, null);
Serializable aserializable[] = {
null
oapagecontext.getApplicationModule(oawebbean).invokeMethod("onChangeExpenseDFFContext", aserializable);
} else
oadescriptiveflexbean.setFlexContext(oapagecontext, s8);
oadescriptiveflexbean.processFlex(oapagecontext);
oawebbeandataattribute1 = (OAWebBeanDataAttribute)oadescriptiveflexbean.getIndexedChild(null, 0);
oadescriptiveflexbean.setFlexTableRendered(false);
oatablelayoutbean3.addIndexedChild(oawebbeandataattribute1);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(!boolean1.booleanValue() && s8 != null)
oawebbeandataattribute1.setRequired("no");
else
oawebbeandataattribute1.setRequired("yes");
DescriptiveFlexfield descriptiveflexfield = (DescriptiveFlexfield)oadescriptiveflexbean.getAttributeValue(OAWebBeanConstants.FLEXFIELD_REFERENCE);
int i = descriptiveflexfield.indexOfContextSegment();
if(oapagecontext.getParameter("_FORMEVENT") != null && oapagecontext.getParameter("_FORMEVENT").startsWith("FLEX_CONTEXT_CHANGED"))
String s14 = descriptiveflexfield.getSegment(i).getValue().getDisplay();
Serializable aserializable2[] = {
s14
oapagecontext.getApplicationModule(oawebbean).invokeMethod("onChangeExpenseDFFContext", aserializable2);
} else
OAMessageChoiceBean oamessagechoicebean = (OAMessageChoiceBean)createWebBean(oapagecontext, oawebbean, "DetailExpType");
oatablelayoutbean3.addIndexedChild(oamessagechoicebean);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
oamessagechoicebean.setPickListViewUsageName("DetailExpenseTypesVO");
if(flag4)
OAStyledTextBean oastyledtextbean3 = (OAStyledTextBean)createWebBean(oapagecontext, "TEXT");
oatablelayoutbean3.addIndexedChild(oastyledtextbean3);
String s10 = oapagecontext.getMessage("SQLAP", "OIE_EXPENDITURE_TYPE_TIP", null);
oastyledtextbean3.setText(oapagecontext, s10);
oastyledtextbean3.setStyleClass("OraInlineInfoText");
if(flag3)
String s13 = (String)oaapplicationmodule1.invokeMethod("getExpenditureType");
boolean flag7 = ((String)oapagecontext.getTransactionValue("IsProjectEnabled")).equals("R") && s13 != null;
if(flag7)
oamessagelovinputbean.setRequired("yes");
oamessagelovinputbean1.setRequired("yes");
boolean flag6 = ((Boolean)oaapplicationmodule1.invokeMethod("isLocationSchedule")).booleanValue();
boolean flag8 = flag5 || flag6;
if(setup.getReceiptBasedLocation() != null)
flag8 = setup.getReceiptBasedLocation().booleanValue() || flag8;
if(flag8)
if(flag6 || flag5)
OAMessageLovInputBean oamessagelovinputbean3 = (OAMessageLovInputBean)createWebBean(oapagecontext, oawebbean, "LocationName");
oatablelayoutbean3.addIndexedChild(oamessagelovinputbean3);
oamessagelovinputbean3.setRequired("yes");
oatablelayoutbean3.addIndexedChild(createWebBean(oapagecontext, oawebbean, "LocationId"));
} else
OAMessageTextInputBean oamessagetextinputbean2 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "RBLocation");
oatablelayoutbean3.addIndexedChild(oamessagetextinputbean2);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean3 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "TransactionLocation");
oatablelayoutbean3.addIndexedChild(oamessagestyledtextbean3);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
Object obj2 = null;
Object obj3 = null;
String s17 = null;
if((OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("RBLocation") != null)
OAMessageTextInputBean oamessagetextinputbean5 = (OAMessageTextInputBean)oawebbean.findIndexedChildRecursive("RBLocation");
s17 = (String)oamessagetextinputbean5.getValue(oapagecontext);
} else
if((OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("LocationName") != null)
OAMessageLovInputBean oamessagelovinputbean4 = (OAMessageLovInputBean)oawebbean.findIndexedChildRecursive("LocationName");
s17 = (String)oamessagelovinputbean4.getValue(oapagecontext);
OAMessageStyledTextBean oamessagestyledtextbean5 = (OAMessageStyledTextBean)oawebbean.findIndexedChildRecursive("TransactionLocation");
String s19 = (String)oaapplicationmodule1.invokeMethod("getTransactionLocation");
if(s19 != null && !s19.equalsIgnoreCase(s17))
oamessagestyledtextbean5.setValue(oapagecontext, s19);
oamessagestyledtextbean3.setRendered(true);
boolean flag1 = true;
} else
oamessagestyledtextbean3.setRendered(false);
if(flag2)
OAMessageStyledTextBean oamessagestyledtextbean4 = (OAMessageStyledTextBean)createWebBean(oapagecontext, oawebbean, "DetailDisplayMerchantName");
oatablelayoutbean3.addIndexedChild(oamessagestyledtextbean4);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
} else
OAMessageTextInputBean oamessagetextinputbean3 = (OAMessageTextInputBean)createWebBean(oapagecontext, oawebbean, "DetailMerchantName");
Serializable aserializable1[] = {
getLocationId(oapagecontext, oawebbean)
Class aclass[] = {
oracle.jbo.domain.Number.class
if(((Boolean)oaapplicationmodule1.invokeMethod("isMerchantRequired", aserializable1, aclass)).booleanValue())
oamessagetextinputbean3.setRequired("yes");
oatablelayoutbean3.addIndexedChild(oamessagetextinputbean3);
oatablelayoutbean3.addIndexedChild(oaspacerrowbean);
} -
Attaching/Detaching libraries with Java API
Hello,
In my forms (Forms10g), sometimes, libraries had been attached in lower case although files are in upper case. This causes compilation errors on UNIX systems.
I'm trying to detach these libraries with Java APIs and then reattach them in upper case.
But I get an error when I want to save the module.
Here is my code :
public class UpperPll {
public UpperPll (String formName) {
try
FormModule form = FormModule.open("C:/AttachPll/" + formName);
System.out.println("Form Name is " + form.getName());
JdapiIterator AttachPll = form.getAttachedLibraries();
while(AttachPll.hasNext())
try
JdapiObject jo = (JdapiObject)AttachPll.next();
System.out.println(jo.getName());
if (jo.getName().toLowerCase().equals(jo.getName()))
AttachedLibrary.find(form,jo.getName().toUpperCase()).detach();
System.out.println(jo.getName().toUpperCase());
new AttachedLibrary(form,jo.getName().toUpperCase());
catch (JdapiIllegalStateException jdise)
jdise.printStackTrace();
form.save("C:/AttachPll/New/" + form.getName() + ".fmb");
Jdapi.shutdown();
catch (JdapiException jde)
jde.printStackTrace();
public static void main (String[] args) {
try {
FileReader r = new FileReader( "C:/AttachPll/listemodule.txt" );
BufferedReader br = new BufferedReader( r );
try {
String module;
while ( ( module = br.readLine() ) != null ) {
new UpperPll(module);
} finally {
r.close();
} catch (FileNotFoundException fnfe) {
fnfe.printStackTrace();
} catch (IOException ioe) {
ioe.printStackTrace();
And here are the errors I get :
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x2FBBDCB
Function=icobad+0xB
Library=C:\DevSuiteHome_1\bin\frmcom.dll
Current Java thread:
at oracle.forms.jdapi.BaseAPI._jni_save_form(Native Method)
at oracle.forms.jdapi.FormModule.save(Unknown Source)
at UpperPll.<init>(UpperPll.java:39)
at UpperPll.main(UpperPll.java:55)
Dynamic libraries:
0x00400000 - 0x0040B000 C:\DevSuiteHome_1\jdk\bin\javaw.exe
0x7C910000 - 0x7C9C7000 C:\WINDOWS\system32\ntdll.dll
0x7C800000 - 0x7C904000 C:\WINDOWS\system32\kernel32.dll
0x77DA0000 - 0x77E4C000 C:\WINDOWS\system32\ADVAPI32.dll
0x77E50000 - 0x77EE1000 C:\WINDOWS\system32\RPCRT4.dll
0x77D10000 - 0x77DA0000 C:\WINDOWS\system32\USER32.dll
0x77EF0000 - 0x77F37000 C:\WINDOWS\system32\GDI32.dll
0x77BE0000 - 0x77C38000 C:\WINDOWS\system32\MSVCRT.dll
0x62DC0000 - 0x62DC9000 C:\WINDOWS\system32\LPK.DLL
0x753C0000 - 0x7542B000 C:\WINDOWS\system32\USP10.dll
0x08000000 - 0x08139000 C:\DevSuiteHome_1\jdk\jre\bin\client\jvm.dll
0x76AE0000 - 0x76B0F000 C:\WINDOWS\system32\WINMM.dll
0x6BD00000 - 0x6BD0D000 C:\WINDOWS\system32\SYNCOR11.DLL
0x10000000 - 0x10007000 C:\DevSuiteHome_1\jdk\jre\bin\hpi.dll
0x00940000 - 0x0094E000 C:\DevSuiteHome_1\jdk\jre\bin\verify.dll
0x00950000 - 0x00969000 C:\DevSuiteHome_1\jdk\jre\bin\java.dll
0x00970000 - 0x0097D000 C:\DevSuiteHome_1\jdk\jre\bin\zip.dll
0x02F60000 - 0x02F6F000 C:\DevSuiteHome_1\BIN\frmjapi.dll
0x02F70000 - 0x02F8C000 C:\DevSuiteHome_1\bin\frmd2f.dll
0x663D0000 - 0x66414000 C:\DevSuiteHome_1\bin\CA.dll
0x66340000 - 0x6636A000 C:\DevSuiteHome_1\bin\mmc.dll
0x64CA0000 - 0x64CB1000 C:\DevSuiteHome_1\bin\UTL.dll
0x60730000 - 0x607DC000 C:\DevSuiteHome_1\bin\oracore10.dll
0x608D0000 - 0x60963000 C:\DevSuiteHome_1\bin\oranls10.dll
0x62B40000 - 0x62B53000 C:\DevSuiteHome_1\bin\oraunls10.dll
0x60C40000 - 0x60C47000 C:\DevSuiteHome_1\bin\orauts.dll
0x719F0000 - 0x71A07000 C:\WINDOWS\system32\WS2_32.dll
0x719E0000 - 0x719E8000 C:\WINDOWS\system32\WS2HELP.dll
0x774A0000 - 0x775DD000 C:\WINDOWS\system32\ole32.dll
0x616B0000 - 0x61891000 C:\DevSuiteHome_1\bin\oraclient10.dll
0x62B60000 - 0x62B66000 C:\DevSuiteHome_1\bin\oravsn10.dll
0x60D30000 - 0x60DE8000 C:\DevSuiteHome_1\bin\oracommon10.dll
0x60300000 - 0x60720000 C:\DevSuiteHome_1\bin\orageneric10.dll
0x629C0000 - 0x629D2000 C:\DevSuiteHome_1\bin\orasnls10.dll
0x62B80000 - 0x62C86000 C:\DevSuiteHome_1\bin\oraxml10.dll
0x02F90000 - 0x02FA1000 C:\WINDOWS\system32\MSVCIRT.dll
0x607E0000 - 0x608CC000 C:\DevSuiteHome_1\bin\oran10.dll
0x62000000 - 0x6202C000 C:\DevSuiteHome_1\bin\oranl10.dll
0x62030000 - 0x62042000 C:\DevSuiteHome_1\bin\oranldap10.dll
0x62090000 - 0x62184000 C:\DevSuiteHome_1\bin\orannzsbb10.dll
0x61E10000 - 0x61E52000 C:\DevSuiteHome_1\bin\oraldapclnt10.dll
0x61F30000 - 0x61F47000 C:\DevSuiteHome_1\bin\orancrypt10.dll
0x71A10000 - 0x71A1A000 C:\WINDOWS\system32\WSOCK32.dll
0x76D10000 - 0x76D29000 C:\WINDOWS\system32\iphlpapi.dll
0x770E0000 - 0x7716C000 C:\WINDOWS\system32\OLEAUT32.dll
0x621A0000 - 0x621D7000 C:\DevSuiteHome_1\bin\oranro10.dll
0x621F0000 - 0x621FC000 C:\DevSuiteHome_1\bin\orantcp10.dll
0x61F70000 - 0x61F76000 C:\DevSuiteHome_1\bin\oranhost10.dll
0x61F20000 - 0x61F26000 C:\DevSuiteHome_1\bin\orancds10.dll
0x62210000 - 0x62216000 C:\DevSuiteHome_1\bin\orantns10.dll
0x60970000 - 0x60C31000 C:\DevSuiteHome_1\bin\orapls10.dll
0x62500000 - 0x62507000 C:\DevSuiteHome_1\bin\oraslax10.dll
0x627B0000 - 0x628B3000 C:\DevSuiteHome_1\bin\oraplp10.dll
0x618B0000 - 0x61905000 C:\DevSuiteHome_1\bin\orahasgen10.dll
0x622B0000 - 0x622E6000 C:\DevSuiteHome_1\bin\oraocr10.dll
0x622F0000 - 0x62315000 C:\DevSuiteHome_1\bin\oraocrb10.dll
0x6FEE0000 - 0x6FF34000 C:\WINDOWS\system32\NETAPI32.dll
0x76BA0000 - 0x76BAB000 C:\WINDOWS\system32\PSAPI.DLL
0x62A80000 - 0x62AF6000 C:\DevSuiteHome_1\bin\orasql10.dll
0x662F0000 - 0x66320000 C:\DevSuiteHome_1\bin\mmi.dll
0x64F10000 - 0x64F21000 C:\DevSuiteHome_1\bin\UIIM.dll
0x64CE0000 - 0x64DBD000 C:\DevSuiteHome_1\bin\UIW.dll
0x64CD0000 - 0x64CD7000 C:\DevSuiteHome_1\bin\UTC.dll
0x64CC0000 - 0x64CC9000 C:\DevSuiteHome_1\bin\UTJ.dll
0x72F50000 - 0x72F76000 C:\WINDOWS\system32\WINSPOOL.DRV
0x58B50000 - 0x58BE7000 C:\WINDOWS\system32\COMCTL32.dll
0x64ED0000 - 0x64EF6000 C:\DevSuiteHome_1\bin\UIOLE.dll
0x76340000 - 0x7638A000 C:\WINDOWS\system32\comdlg32.dll
0x77F40000 - 0x77FB6000 C:\WINDOWS\system32\SHLWAPI.dll
0x7C9D0000 - 0x7D1F3000 C:\WINDOWS\system32\SHELL32.dll
0x64AD0000 - 0x64C05000 C:\DevSuiteHome_1\bin\VGS.dll
0x64E30000 - 0x64E93000 C:\DevSuiteHome_1\bin\UIREM.dll
0x659A0000 - 0x659EE000 C:\DevSuiteHome_1\bin\ROS.dll
0x66250000 - 0x6627E000 C:\DevSuiteHome_1\bin\mmw.dll
0x662A0000 - 0x662B0000 C:\DevSuiteHome_1\bin\mmv.dll
0x73AA0000 - 0x73AB7000 C:\WINDOWS\system32\AVIFIL32.dll
0x77BB0000 - 0x77BC5000 C:\WINDOWS\system32\MSACM32.dll
0x75BA0000 - 0x75BC1000 C:\WINDOWS\system32\MSVFW32.dll
0x662C0000 - 0x662DF000 C:\DevSuiteHome_1\bin\mms.dll
0x66810000 - 0x66A2B000 C:\DevSuiteHome_1\bin\DE.dll
0x627A0000 - 0x627AF000 C:\DevSuiteHome_1\bin\oraplc10.dll
0x64F50000 - 0x64F66000 C:\DevSuiteHome_1\bin\UICC.dll
0x64FB0000 - 0x64FDA000 C:\DevSuiteHome_1\bin\UCOL.dll
0x02FB0000 - 0x030CA000 C:\DevSuiteHome_1\bin\frmcom.dll
0x66380000 - 0x66389000 C:\DevSuiteHome_1\bin\mma.dll
0x64FF0000 - 0x65003000 C:\DevSuiteHome_1\bin\UAT.dll
0x66220000 - 0x6623C000 C:\DevSuiteHome_1\bin\nn.dll
0x64F70000 - 0x64F94000 C:\DevSuiteHome_1\bin\UIA.dll
0x64F30000 - 0x64F45000 C:\DevSuiteHome_1\bin\UIDC.dll
0x030D0000 - 0x03194000 C:\DevSuiteHome_1\bin\frmdig.dll
0x031A0000 - 0x0324D000 C:\DevSuiteHome_1\bin\frmdug.dll
0x66210000 - 0x66215000 C:\DevSuiteHome_1\bin\obs.dll
0x77390000 - 0x77492000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x5B090000 - 0x5B0C8000 C:\WINDOWS\system32\uxtheme.dll
0x74690000 - 0x746DB000 C:\WINDOWS\system32\MSCTF.dll
0x76BE0000 - 0x76C0E000 C:\WINDOWS\system32\WINTRUST.dll
0x779E0000 - 0x77A76000 C:\WINDOWS\system32\CRYPT32.dll
0x77A80000 - 0x77A92000 C:\WINDOWS\system32\MSASN1.dll
0x76C40000 - 0x76C68000 C:\WINDOWS\system32\IMAGEHLP.dll
0x72C70000 - 0x72C79000 C:\WINDOWS\system32\wdmaud.drv
0x72C60000 - 0x72C68000 C:\WINDOWS\system32\msacm32.drv
0x77BA0000 - 0x77BA7000 C:\WINDOWS\system32\midimap.dll
0x5D3F0000 - 0x5D491000 C:\WINDOWS\system32\DBGHELP.dll
0x77BD0000 - 0x77BD8000 C:\WINDOWS\system32\VERSION.dll
Heap at VM Abort:
Heap
def new generation total 576K, used 35K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 6% used [0x10010000, 0x10017c90, 0x10090000)
from space 64K, 7% used [0x10090000, 0x10091348, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 122K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 8% used [0x104f0000, 0x1050e930, 0x1050ea00, 0x10650000)
compacting perm gen total 4096K, used 1642K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 40% used [0x14010000, 0x141aaac8, 0x141aac00, 0x14410000)
Local Time = Wed Apr 12 10:35:49 2006
Elapsed Time = 5
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.4.2_06-b03 mixed mode)
# An error report file has been saved as hs_err_pid3184.log.
# Please refer to the file for further information.
Can anyone help me ?
Message was edited by:
dbouchierWe do something very simular. We rename everything to lowercase for the same reasons. I've pasted a snippet of the code we're using at the end of this post.
To get the full source code of our converter have a look at http://www.oratransplant.nl/2005/05/30/custom-built-forms-migration-assistant/#comment-642
Here is the code snippet:
while (attachedLibs.hasNext()) {
AttachedLibrary attachedLib = (AttachedLibrary)attachedLibs.next();
String attachedLibLocation = attachedLib.getLibraryLocation();
out("Found attached library " + attachedLibLocation, logLevel,
false);
if (attachedLib.getName().equalsIgnoreCase("obsolete_forms6")) {
obsoleteAttached = true;
if (attachedLib.getName().equalsIgnoreCase("webreports")) {
webReportsAttached = true;
// converted name of attached lib to lowercase
if ((!attachedLibLocation.equals(attachedLibLocation.toLowerCase())) &&
lowerLib) {
out(attachedLib,
"Converting filename to lowercase (" + attachedLibLocation.toLowerCase() +
")", logLevel + 1, true);
attachedLibLocation = attachedLibLocation.toLowerCase();
pllChanged = true;
// attachedLibLocation = attachedLibLocation.toUpperCase();
pldText.append(".attach LIBRARY " + attachedLibLocation +
" END NOCONFIRM\n");
out("Re-attaching library " + attachedLibLocation, logLevel + 1,
false);
} -
Read "Qualified Range Key Generation" with Java API.
Hi guru,
I use MDM 5.5 SP6.
In MDM Console I read Qualified Range Key Generation it in "ADMIN -> Remote Systems -> Qualified Range".
I have to get "Qualified Range Key Generation" with Java API.
It's possible?Hi Rocco,
I am also thinking of same scenario.I thought it is possible in Java Apis by calling the webservices for MDM.there is a service of "get key mapping" where we can pass this "Qualified key range" as parameter.In MDM we have to define a look up table for that key ranges .We will access that table through JAVA API and then link it with the key mapping service .
If u find any solution to apply this ,please share.
thanks and regards
Ank -
How to Print reports with Java Application
I'm developing a database application in java using rmi and swings. Now I want to take some printout of reports from that application. Is any report designer available for java applications. How can i solve this problem. Please help me.
Hi
I don't know i f exist a tool like you want, but, in Java
the print job is implemented by a class implementing the Printable interface.
A class "Printable" must implement the print method like is defined at scpec. This method, via the params, can do print by "drawing" the page and, finally, return an integer
indicate if the print loop must continue or not.
The drawing op over the printer Graphics context is realized by methos of Graphics object (if you want "print"
some text you can do g.drawString("some text",x,y) and so on).
See the tutorials for more info
Hope this help -
I have an ipod 4 touch with a broken power button and Im locked out of the ipod. How can I reset the ipod? Please help!
I also don't know the operating system.See the method in my reply in this discussion for how to place the iPod in Recovery mode w/o buttons
Turn on without Home/Power Button -
Hi, I was working in WORD on a file containing huge data. My machine just hung up one day while working and now I seem to have lost the file how do I get it back. Please HELP me.
Well, iCloud has nothing to do with this.
Do you have the built-in backup function Time Machine running on your Mac?
See: http://support.apple.com/kb/ht1427 -
my voice call services is not working with cellular network...only works fine with wifi..please help?
Since you have already done some sort of reset on your Airport Express, you might as well make sure it was a "hard reset" - follow the instructions for a hard reset found at:
http://docs.info.apple.com/article.html?artnum=108044
Since your Mac is running Leopard, you need to configure the Airport Express using the Airport Utility found in the Applictions->Utilities folder. You cannot install the old software that was supplied on the CD you got with the Airport Express.
In future - if you do something bad with network settings on your Mac, do NOT try to fix it with the Airport Utility. The Airport Utility is only used to configure the Airport Express - and since the problem you have created is on the Mac and not the Airport Express, there is no need to be using the Airport Utility and especially there is no need to be resetting the Airport Express.
Maybe you are looking for
-
Session Timeout Question in EME
If I login to eManager Web and instead of logging out I just close the browser will I be logged out? Will the license be released? What is the session timeout for this and is it possible to set this value?
-
HT201317 how can I get back my lost photos stored in Photo stream?
When I did an update, all the photos disappeared. How can I get them back? pleasee! I need them as soon as possible Thanks a lot
-
[SOLVED] Some text not rendering in Gnome after update
After a recent update some text is not rendering in Gnome. For example, look at the url bar of chromium in this screenshot: http://i.imgur.com/A2Qyw.png Here's a "screenshot" of some text not rendering in gnome-terminal: $ echo -e "I like pizza\nI li
-
I have been having an ongoing issue with my WiFi iPad 2 (as well as my iPhone 4). My WiFi constantly drops. Basically any time I want to use either of these devices I have to restart my router. My PC laptop works fine on the wireless. The iPad and iP
-
My i pod nano keeps changing the songs itself, if i click forward it will forward 3 songs forward. If not it will just keep changing the songs itself. Does anyone know whats wrong with it? Or will i have to send it back to Apple. i pod nano Windows