How to set the DFF Attribute Programmatically?
hi
how to set the DFF Attribute Programmatically in Process Request of CO
thanx
Hi
Do u want to set the value in DFF Programmatically ?
u can capture the VO used for DFF and set the the value in controller.
Thanks
Similar Messages
-
How to set the conversation id programmatically in a BPM process
Hi all,
I am using BPM/SOA 11g PS3.
Is it possible to set the conversation id programmatically in a BPM process starting with a none start event?
I know I can set it easily if I use a BPM process starting with a message start event.
All I have to do is set it in the "wsa:MessageID" node in SOAP Header when I initiate the process instance.
However, I have no idea how to set the conversation id programmatically in a BPM process starting with a none start event.
I looked for if there is any appropriate method in the Java api for the process instance management, such as IInstanceManagementService and CompositeInstance, but no method seems to be appropriate.
Does anyone know how to do this?
Regards,
Kenji
Edited by: Kenji Imamura on 2011/04/20 0:10Hi fifty,
Did you get a solution to the above problem you have mentioned? I have a similar issue i am trying to fix.
I have a webservice call in a process activity and if the call does not work i get a soap fault and the fuego.lang.ComponentExecutionException . My process requires that i catch the exception infact any kind of exceptions that occur on that call and perform another activity in the process.
I have defined an exception handler at the activity level for java.lang.Exception and java.lang.RunTimeException.
i don't see anything in the catalog which would handle the SOAP fault OR the componentexception. -
HOW to set the value attribute of FORM INPUT data to a variable in a JSP
eg. Registration.jsp
The data is accessed from an hidden field called course
for example, if I have "Java programming" in the field course, and I use
an expression to access the value from the hidden field.
**My problem is that the data gets truncated to "Java" , I need "Java Programming"to display. The code looks like this
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<INPUT TYPE="text" SIZE=12 NAME="course"
VALUE=<%=getParameter("course") %>
IS there ANY OTHER WAY to set the value of VALUE to a variable?Instead of value=<%=request.getParameter("course")%>
Use double codes
value="<%=request.getParameter("course")%>" -
How to set the LOV value programmatically?
Hello,
I have a LOV (select list with submit) the value (displayed and corresponding returned) of which I would like to set by selecting a row in a report.
What is the event I use to catch the selection of the row in the report and what would be the sample code to set the LOV values?
Thanks a lot!
GaborPerhaps a more detailed explanation of the issue helps:
I am developing an online internet bookmarking application. It basically contains a folder tree and bookmarks within the folders.
The folder tree is implemented by a table referencing itself (main columns are: ID, NAME, PARENT_ID).
The LOV lists the NAMEs (actually, the full path of each folder as returned by a function) and returns the IDs.
When the user selects a NAME, folders and bookmarks contained in that folder are listed in a report (non-recursively).
The action of the user clicking a folder in the report should simulate the above as if they selected the name manually. This is where I need help!
I hope this helps. Thanks!
Gabor -
In OAF, How to get the DFF Attributes bean in the PR of the controller
Hi All,
I am not able to get the holder of the Descriptive Flex Field bean attributes in the processrequest method of the controller. Any idea, how to get it?
my Code Snippet:
OADescriptiveFlexBean oadescriptiveflexbean = (OADescriptiveFlexBean)webBean.findIndexedChildRecursive("AdditionalAttributes");
if(oadescriptiveflexbean != null)
System.out.println("oadescriptiveflexbean is not null);
OAWebBean bean1 = (OAWebBean) oadescriptiveflexbean.findIndexedChildRecursive("AdditionalAttributes1");
System.out.println("bean1 "+bean1);
It is going inside the IF condition. But, it displaying the bean1 value as null.
Regards,
SooryaHi,
You cannot reorder the dffbeans. In DFF setup definition itself, you have to maintain the sequence of the fields.
DFF beans are listed under flow layout by default. Following note from OA Framework developer guide
++++
Altering the Flexfield UI LayoutNote:
This is not recommended by the OA Framework team and may cause problems with PPR.
If you want to do something unusual with the descriptive flexfield UI layout (like insert a button after every segment or move the segments around), you need to follow these steps:
Find the OADescriptiveFlexBean by attribute name and call the processFlex method on OADescriptiveFlexBean. After this, you will be creating the flexfield segment web beans based on metadata and the view object attribute.
Call the getIndexedChild(int)method on the flexfield web bean to go through all the child of the flexfield and alter the layout as desired.
++++
Regards,
Soorya -
Update the DFF attribute in advanced table not working
Hi,
We used a custom value set and enabled the DFF in requisition edit lines page advanced table. We made attribute1 in the DFF as the work order number. When the user enters the work order number, then in PFR, we calculated the project# and task# and populated the fields in that row. When the user changes the task#, then we need to make the work order number null. Below is the logic we followed.
We get the row reference and get the row.
row.setAttribute("Attribute1", null);
When we did the write diagnostics, it is displaying the attribute1 as null, but on the page it is displaying the value that is already existing.
2nd approach we followed is:
Get the handle to the flex using findChildRecursive.
Get the lovInputBean handle from the flex using findChildRecursive
setText(null);
But this 2nd approach is making all the work order numbers in all rows to null.
Can you please let me know how to set the DFF enabled attribute value in advanced table?
Thanks,
HCHi,
Can you try by casting row with PoRequisitionLinesVORowImpl.
Something like below
PoRequisitionLinesVOImpl xxReqLineVO = am.getPoRequisitionLinesVO();
PoRequisitionLinesVORowImpl xxReqLineRow = null;
for(xxReqLineRow = (PoRequisitionLinesVORowImpl)xxReqLineVO.first(); xxReqLineRow != null; xxReqLineRow = (PoRequisitionLinesVORowImpl)xxReqLineVO.next())
try
String xxdelToLocId = xxReqLineRow.getDeliverToLocationId().toString());
if(<your condition >)
xxReqLineRow.setAttribute1("");
else
xxReqLineRow.setAttribute1("xx_YOUR_VALUE");
catch(Exception e)
throw OAException.wrapperException(e);
xxReqLineVO.reset();
}Thanks,
Jit -
How to set the lifetime properties of a document
Hi Experts,
Do somebody know how to set the lifetime attributes "valid from" and "valid to" via java of the lifetime properties?
Which java class should I use?
Do somebody have an example for this issue maybe?
Thanks in advanced!
Best Regards,
MarkusHi Markus,
Below is a sample method which i am using for setting expiry date for a KM Doc...
public void setTimeBasedPublish(IResource resource) throws WcmException {
IRepositoryServiceFactory repServiceFactory =
ResourceFactory.getInstance().getServiceFactory();
IRepositoryService repositoryService =
repServiceFactory.getRepositoryService(
resource,
IWcmConst.TIMEBASED_PUBLISH_SERVICE);
ITimebasedPublishServiceManager tpbService =
(ITimebasedPublishServiceManager) repositoryService;
java.util.Date startDate = new java.util.Date();
java.util.Date endDate = new java.util.Date();
endDate.setMinutes(
startDate.getMinutes()
+ Integer
.valueOf(getproperty("LIFETIME_MINUTES_FOR_LATEST_REPORTS"))
.intValue());
endDate.setDate(
startDate.getDate()
+ Integer
.valueOf(getproperty("LIFETIME_DAYS_FOR_LATEST_REPORTS"))
.intValue());
tpbService.saveValidDate(resource, startDate);
tpbService.saveInvalidDate(resource, endDate);
Regards
BP -
How to set the username in PeopleEditor programmatically
Hi ,
How to set the user name in people picker entity programmatically.
I have tried this:
<sp:PeopleEditor ID="sppcustom" runat="server" AllowEmpty="false" MultiSelect="false" SelectionSet="User" />
In the webpart cs code:
PeopleEditor sppcustom = new PeopleEditor();
sppcustom.CommaSeparatedAccounts = "domain" + "\\" + userFullname;
The code is executing fine without error, however the username is not shown in the peopleeditor.
When the name is added, i am getting the error "No exact match was found. Click the item(s) that did not resolve for more options.".
However the username is a valid one. i tried the validate code also and the username was validated.
How to fix this?
ThanksYou can set the display name of the particular user
sppcustom.CommaSeparatedAccounts = userFullname.Name;
if userFullname is SPUser
Gnanasekhar K -
Setting the logonHours attribute for a user in Active Directory
Hi Anyone,
I'm a brasilian guy and I need your help. How can I set the logonHours attribute on my Active Directory?
I have this code but it doesn't works good:
public void setLogonHours(boolean[] logonHoursBits){
int i;
int j;
int k;
int index21 = 0;
int index24 = 0;
byte[] byteLogonHour = new byte[21];
byte byte8Hours = 0;
for(i=0; i <= 6; i++){
for(j=1; j <= 3; j++){
for(k=7; k >= 0; k--){
if (i < 6){
if (logonHoursBits[i] == (boolean)(index24 == 0) ? true : false){
byte8Hours += (byte)Math.pow(2,k);
else{
if (logonHoursBits[0] == (boolean)(index24 == 0) ? true : false){
byte8Hours += (byte)Math.pow(2,k);
index24++;
byteLogonHour[index21] = byte8Hours;
index21++;
index24 = 0;
try{
String nome = "CN=Dryelle,OU=Pesquisa,DC=cifya,DC=com,DC=br";
ctx = new InitialLdapContext(env,null);
ModificationItem logonHours[] = new ModificationItem[1];
logonHours[0]= new ModificationItem(DirContext.REPLACE_ATTRIBUTE, new BasicAttribute("logonHours",byteLogonHour));
ctx.modifyAttributes(name,logonHours);
System.out.println("Atributo logonHours alterado com sucesso.");
catch (NamingException e) {
System.err.println("Problema na altera??o " + e);
}the code set the attribute but wrong. Can anyone help-me? It's making me crazy.
Sorry about my poor english.
Tks.
Edited by: th_slopes on Aug 15, 2008 5:50 PMDirContext ctx = new InitialDirContext(pr);
BasicAttributes entry = new BasicAttributes(true);
String entryDN = "cn=CharbelHad,ou=test users,dc=test,dc=dev";
Attribute cn = new BasicAttribute("cn", "ChHad");
Attribute street = (new BasicAttribute("streetAddress", "Ach"));
Attribute loginPreW2k = (new BasicAttribute("sAMAccountName", "[email protected]"));
Attribute login = (new BasicAttribute("userPrincipalName", "[email protected]"));
Attribute sn = (new BasicAttribute("sn", "Chl"));
Attribute pwd = new BasicAttribute("unicodePwd", "\"Ch@341\"".getBytes("UTF-8"));
Attribute userAccountControl = new BasicAttribute("userAccountControl", "512");
Attribute oc = new BasicAttribute("objectClass");
oc.add("top");
oc.add("person");
oc.add("organizationalPerson");
oc.add("user");
// build the entry
entry.put(cn);
entry.put(street);
entry.put(sn);
entry.put(userAccountControl);
entry.put(pwd);
entry.put(login);
entry.put(loginPreW2k);
entry.put(oc);
ctx.createSubcontext(entryDN, entry); -
How to set the IP address in L25 Tape library
I try to set the ip address in L25 tape library. But it is not stored in the NVRAM. For that purpose I restart the device. Then all the values are reset. please tell how to set the ip address.
Lylee,
Please take a look at the following links. The first describes how to distribute your application to multiple targets when using shared variables. The others are explaining alternate ways to change the IP address of a controller.
How Do I Distribute a Real-Time Application with Shared Variables to Multiple Users?
http://digital.ni.com/public.nsf/allkb/20C9771687E6BBB3862570E7006C2284?OpenDocument
How Do I Change the IP Address of a RT Series Controller (FieldPoint, cRIO, etc) that is not on the Local Subnet?
http://digital.ni.com/public.nsf/allkb/9F7548F5C781E05586256C75006D8B94?OpenDocument
Real-Time Target System Replication Tool
http://digital.ni.com/public.nsf/allkb/444A6A22A6EC50FB86257213004A878C?OpenDocument
http://digital.ni.com/public.nsf/allkb/DDD15965085446E68625733A00451C7A?OpenDocument
Can I Programmatically Assign an IP Address to My Real-Time Target? -
How to set the default item showed in a h:selectonemenu
I need to show the second, or the third, and on so.
i tried some ways to set the default item showed in it, but failed.
i had tried the attribute value, but it stiil showed the first item.
Can u help me?
in the JSP
<h:selectOneMenu id = "companyName" rendered="true" binding="#{j03CMSyainAddBean.selectCompany}" style="width:150">
<f:selectItems value="#{j03CMSyainAddBean.companyList2}"/>
</h:selectOneMenu>in the back BEAN
private UISelectOne selectCompany;
private ArrayList companyList2;In the ArrayList companyList2, there are several selectItems.
Thanks
GeorgeSanjeev K Sharma wrote:
and without messing with /boot/grub/grub.cfg ?
I need this so that new kernels show up but do not change the default boot kernel
Is there a way to do it by file name instead of position within the menuentry / submenu list?
I found some ubuntu and fedora sugestions but all by position, none by name
AND how to set the kdump kernel as the default?
Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
In /etc/default/grub you can use the name of your entry you wish to use as default
GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
You can tell grub to stop using submenus by doing:
GRUB_DISABLE_SUBMENU=y
Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
menuentry "Other Linux" {
linux <KERNEL IMAGE HERE>
initrd <INITRD IMAGE HERE>
EDIT: /etc/grub/default -> /etc/default/grub
Last edited by Slabity (2015-04-07 11:16:22) -
Hello ,
I am using oracle apex 3.2.1 in development env. How to set the focus to a first element of a page.
thanks/maheshHi,
This might help
http://download.oracle.com/docs/cd/E14373_01/appdev.32/e11838/bldr_pgs.htm#CJGJDHCI
Find "Cursor Focus" from page Display Attributes
Br,Jari -
How to set the default context value for flexfield in OAFramework pages
Hi,
I have a page which contains a contexxt value field i.e Flexfields
To select the context value we have to select the value from drop down
So Here we want to display the context value immediately when the page is called
How to set the default valu in this case
Regards,
KrishnaYou can set the Attribute category view attribute to the Flexfield context value and call prepareforRendering in the flex bean. Check the dev guide for details.
Regards
Sumit -
How to set the isolation level on Entity EJBs
I am using 10.1.3.3 of the OC4J app server.
I am creating an application that uses EJB 2.1.
I am trying to set the isolation levels on the EJBs to either serializable or repeatable read.
When i deploy the EAR file from the OC4J admin console, i can set the isolation level property on the EJB's however when i inspect the orion-ejb-jar.xml file I do not see the isolation level being set. Furthermore, i tried to manually change the isolation setting by editing the orion-ejb-jar.xml and adding the isolation="serialiable" attribute on the entity bean descriptor. I then stopped and restarted the server. I noticed that my change was no longer in the file.
Can someone please let me know how to solve this problem and set the isolation level on Entity EJBs . ThanksI find it at ejb.pdf from BEA.
The transaction-isolation stanza can contain the elements shown here:
<transaction-isolation>
<isolation-level>Serializable</isolation-level>
<method>
<description>...</description>
<ejb-name>...</ejb-name>
<method-intf>...</method-intf>
<method-name>...</method-name>
<method-params>...</method-params>
</method>
</transaction-isolation>
"Hyun Min" <[email protected]> wrote in message
news:3c4e7a83$[email protected]..
> Hi!
>
> I have a question.
> How to set the transaction isolation level using CMT in descriptor?
>
> The Isolation level not supported in CMT?
>
> Thanks.
> Hyun Min
>
>
-
Excel MySQL - To set the action attribute in a form
Hi All
I am working on an application that requires to read data from Excel and update the table in MySQL. My java code works well and does the required. For the user to select an excel file, i have designed a form using JSP. This JSP form gets loaded through Tomcat..When the user browses and selects the required file, he then will click on the update button and the java code then should be executed.
How can i set the action attribute in form tag to execute java code.
Following is my code.
<%@page
language="java"
import="javax.servlet.*,javax.servlet.http.*,java.io.*,java.util.*,java.sql.*"
info="BulkUpdate"
session="true"
%>
<html>
<head></head>
<title>Bulk Update Page</title>
<body bgcolor="#FFcc00">
<p style="margin-top: 0; margin-bottom: 0">
<u><b><font color="#800000" size="4"><center>Update Data from Excel Sheet to Database</center></font></b></u></p><br>
<p style="margin-top: 0; margin-bottom: 0">
<font face="arial" color="#000080" align="left"><b>Bulk Update on :</b>
<%
java.util.Date date = new java.util.Date();
%></font>
<%
out.print( date );
%>
<br><br>
<b><font size="2" face="Arial" color="#000080">This page is used to Select the
data and configuration file in the browser and update MYSQL database
</font></b></p>
<form action="http:\\localhost:8080\itasm\ExcelTest3.java" method="post" enctype="multipart/form-data">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="98%" id="AutoNumber1">
<tr>
<td width="34%" bgcolor="#800000"><b>
<font face="Arial" color="#FFFF00" size="2">Select the Excel File to update </font>
</b></td>
<td width="53%" bgcolor="#800000">
<p align="left"><input size="34" type="file" name="spreadsheet" /></td>
<td width="17%" bgcolor="#800000"><input type="submit" value="Update File" /></td>
</tr><br>
<tr>
<td width="34%" bgcolor="#800000"><b>
<font face="Arial" color="#FFFF00" size="2">Select the corresponding Configuration File</td>
<td width="17%" bgcolor="#800000"><input size="34" type="file" name="configfile" /></td>
<td width="53%" bgcolor="#800000"></td>
</tr></font>
</table>
</form>
<p style="margin-top: 0; margin-bottom: 0">
</p>
</body>
</html>When i execute the above code rather than executing the code, it just displays it in the browser.
Please help.
RegardsHi Andy!
I just started to set the tabindex on each item... it wasn't working.. I copied the example you gave.. ha.. you had taxindex --- TAX and I too didn't notice it.. so just want to mention it incase anyone does what I did.. copies without thinking..
As you said in the previous post it is TABINDEX="n"
Ha.. its a Monday.. Bill
Maybe you are looking for
-
HT1212 my ipod touch is not working
my ipod is stuck on the apple symble
-
Error in cacelling billing document in t.code VF11
Dear Friends, When i have Cancel billing document with t code VF11, following error occuared Error Log 1102277799 000000 Cancellation document is not the same as the original billing doc. 1102277799 102277799 000000 Data inconsistency during processi
-
When logging into iCloud in Safari, Calendar doesn't display any events. They are displayed on the iPad, iPhone on even the iCal. What is wrong ?
-
For some reason, this particular property does not stay checked. When I first start CF Builder, it is always unchecked. Rarely, but occasionally, it will stop uploading on save while CF Builder is running. I go to properties, and sure enough, the
-
Showing PDF without using InteractiveForm
Hi experts, I receive PDF content from a RFC in the "XSTRING" format. I can show this in an interactive form (by mapping the pdfSource property of my InteractiveForm with the Xstring), but then we need to install ACF on all the PCs of the customer. S