Concatenate two string in ADF pages
Hi,
I want to concatenate two strings and store it a variable and also I want to display the concatenate value... Can anyone help me out?
<c:set var="One" value="{bindings.Check1.inputValue}"></c:set>
<c:set var="Two" value="{bindings.Check2.inputValue}"></c:set>
I want to concatenate the value of above 2...
Thanks,
Gomathi
value="#{bindings.Check1.inputValue} #{bindings.Check2.inputValue}"John
Similar Messages
-
How to draw a line on ADF page between two nodes for mapping.
Hi everyone,
Does anyone have a solution that how can I wiring two points by drawing a line on ADF pages.
My scenario is user want to do a mapping between two xml files. We will build an ADF faces page. This page have two parts, left part contains one tree(base on the source xml), right part is the destination tree(target xml). User can drag an node from left and drop to right. Meantime, a line will be created to connect two node, it would be perfect that when user scroll down the page, or extend the tree node, the line between source and target will be remain connection two node.
Does anyone have a solution for this, thanks in advance.
Hongfu.so you want to do something like. xsl mapper in soa
http://www.haertfelder.com/images/pSoaBPEL3.png
i can think of using javascript.. not sure... neeed extra programming.. -
How to concatenate two different strings?
I am facing problem in concatenation of two different strings.Basic behind two strings is that 1st string consist today's date (ddmmyy) and second one is two digit number from a loop (01-99).So that I will come with 8 digit unique number(20100801) every time I hit it.
Can u please give any reference for this?
I will be very thankful !!
With Regards,
Aman Aggarwal... or you could use StringBuilder...
or you could use the formatting functionality of java.util.Formatter ...
You need to be more specific about your problem. Concatenating string is the one of the simplest things one can do in Java. If you really are having a problem with it, you should be clearer about your problem. Post a SSCCE. -
Facing issue in calling BPEL WebService from ADF page.
Considering example:
I have a Login Page (Login.jspx) with two input text, UserID & Password and one Login Button. On press of login Button It will call a BPEL service for validating the user and will return a String value with Success or Failure as value. Depending on this value I will decide inside Managed Bean response will go to which path.
Took the reference of http://www.oracle.com/technology/obe/fusion_middleware/fusion/adf_wc/10_132_siebel_webcenter/siebel_webcenter.htm
Using this I am able to call BPEL from my ADF page and able to show the result on different ADF page, but not able to take the BPEL returned value inside the managed bean.
Please help me how to take BPEL output value inside my managed bean.Considering example:
I have a Login Page (Login.jspx) with two input text, UserID & Password and one Login Button. On press of login Button It will call a BPEL service for validating the user and will return a String value with Success or Failure as value. Depending on this value I will decide inside Managed Bean response will go to which path.
Took the reference of http://www.oracle.com/technology/obe/fusion_middleware/fusion/adf_wc/10_132_siebel_webcenter/siebel_webcenter.htm
Using this I am able to call BPEL from my ADF page and able to show the result on different ADF page, but not able to take the BPEL returned value inside the managed bean.
Please help me how to take BPEL output value inside my managed bean. -
Need Value and labed different for a dynamic Dropdown in an ADF page
Hi,
We have an ADF page with a drop down.
This is populated dynamically.
We have created using the below code.
Issue: what we need is that each value the Label set should be different.
Code : presently hard coded
In the Java file for the page we had the following code:
===========================================================
String haircolor;
SelectItem[] haircolorSelectItems;
ArrayList haircolorlist = new ArrayList();
public PatientAdvSearch() {
haircolorlist.add(new SelectItem("Black"));
haircolorlist.add(new SelectItem("Blonde"));
haircolorlist.add(new SelectItem("Red"));
haircolorlist.add(new SelectItem("Others"));
haircolorlist.add(new SelectItem("Grey"));
SelectItem[] haircolors = (SelectItem[]) haircolorlist.toArray(new SelectItem[0]);
haircolorSelectItems = haircolors;
public void setHaircolor(String haircolor) { this.haircolor = haircolor; }
public String gethaircolor() { return haircolor; }
public SelectItem[] getHaircolorSelectItems() {
return haircolorSelectItems;
===========================================================
And the JSPX will have the following code.
<af:selectOneChoice binding="#{backing_PatientAdvSearch.selectOneChoicerace11}"
id="selectOneChoicerace11"
unselectedLabel="<Select>">
<f:selectItems value="#{backing_PatientAdvSearch.haircolorSelectItems}" />
</af:selectOneChoice>
===========================================================
This populates both Lable and Value for the Select Item with one value.
We need two different value.
How do we go ahead with that.
ThanksYes.. actually i am also facing the same prob...
i need value and label to be different for dynamic dropdown.
Please help in case any one has faced the same issue. -
Open file from ADF pages gives a problem
Hi all,
I have created with Jdev 11g an ADF page.
In that page is shown a table with the files that are stored in the database.
I use this code to show the file:
public void showFile(BlobDomain b,String filename){
FacesContext fc = FacesContext.getCurrentInstance();
HttpServletResponse response = (HttpServletResponse)fc.getExternalContext().getResponse();
response.setHeader("Content-Disposition","attachment; filename=\""+filename+"\"");
response.setHeader("cache-control", "no-cache");
try {
InputStream in;
in = b.getInputStream();
ServletOutputStream out = response.getOutputStream();
writeInputStreamToOutputStream(in, out);
fc.responseComplete();
} catch (IOException e) {
e.printStackTrace();
} catch (Throwable e) {
e.printStackTrace();
}This works for the first time a file is opened. But when the user then selects a different row nothing is happening anymore.
What can that be?Hi Simon,
This is the button:
<af:commandButton text="Open file"
binding="#{backingBeanScope.backing_pages_Meldingen.cb5}"
id="cb5"
disabled="false"
action="#{backingBeanScope.backing_pages_Meldingen.openFile}"/>this is openfile:
public String openFile() {
BindingContainer bindings = this.getBindings();
DCIteratorBinding iter = (DCIteratorBinding)bindings.get("XxahelpBezoekRapDocView1Iterator");
Row currentRw = iter.getCurrentRow();
showFile((BlobDomain)currentRw.getAttribute("Bijlage"),currentRw.getAttribute("Filename").toString());
return null;
}And how can I download in a popup?? -
How to use programmatic VO objects in creating a Tree in ADF Page.
Hi,
I have two programmatic VOs namely Plan and Model. Even though functionally there is a Master/Detail (Plan --> Model) relationship between them, we are not creating any View Link as they are programmatic VOs. Requirement is to show this master/detail data as tree in the ADF page. Any pointer on how to achieve this?
Thanks
Edited by: user766455 on Jan 3, 2012 10:34 AMMy question is not related Traversing Tree... my question is how to create Tree in the ADF page using programmatic VOs, which don't have master and details View Link.
-
Creating a adf page based on webservice data control
hello
i am using latest version of jdev 11g from otn.
i created a VO based on EO and define a view criteria as well. i added that to a AM and exposed it as web service and deployed to a wls server.
now i wish to created a adf page based on it so i created a ws data control based on the wsdl.
in the data control section now i see service as findSearchOrder. When i try to drop it on the page it created a adf form with two input boxes findControl and findCriteria.
So, I am not able to understand how exactly these are going to map to the actual search parameters?
Please adviseIf you want to retrieve all records, you can set them to null.
But of course, it depends on what you want to archive (I suppose you want a search form?).
Please give us your complete JDev version. (Help > About > About tab) -
Is there a way to delete text between two strings?
In Pages, is there a way to delete all text containted between two strings?
For example, if I have a text document that looks like this:
String 1
String 2
Unwanted text
Unwanted text
String 3
String 4
Is there was to delete the unwanted text between string 2 and 3 so it looks like this:
String 1
String 2
String 3
String 4
The unwanted text is differnet between documents but string 2 and 3 are constant. I want to do this via automator for the same strings on multiple documents.
Any help is appreciated!Do you mean Pages '09 v4.3?
There were some links here:
https://discussions.apple.com/message/24051199#24051199
Peter -
Some ADF pages are broken on old firefox browser in Linux OS
Hi all,
Recently few of the ADF pages in my area are reported to be broken in old firefox browser running on RHEL 5 64 bit OS.
Firefox version: 3.6.26 (Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.26) Gecko/20120131 Oracle/3.6-1.0.1.el5_7 Firefox/3.6.26)
Triaging the issue I found that for all broken pages the page is refreshed again after complete load and URL for second load has a malformed escaped string appended which I suspect might be causing this issue.
URL for first load:
http://adc4120388.us.oracle.com:15227/em/faces/ai/ess/listSchedules?target=%2FFarm_WLS_SOA%2FWLS_SOA%2Fess_server1%2FESSAPP&type=scheduler_service&appContext=enabledApp&Adf-Rich-Message=true&unique=1362573084657&oracle.adf.view.rich.STREAM=emT:searchResults:schedulesTable&Adf-Page-Id=6&javax.faces.ViewState=!8wifg1j3&Adf-Window-Id=w1
URL for second load:
http://adc4120388.us.oracle.com:15227/em/faces/ai/ess/listSchedules?target=%2FFarm_WLS_SOA%2FWLS_SOA%2Fess_server1%2FESSAPP&type=scheduler_service&appContext=enabledApp&Adf-Rich-Message=true&unique=1362573084657&oracle.adf.view.rich.STREAM=emT:searchResults:schedulesTable&Adf-Page-Id=6&javax.faces.ViewState=!8wifg1j3&Adf-Window-Id=w1#!6%40%2Fai%2Fess%2FlistSchedules%40%3Ftarget%3D%252FFarm_WLS_SOA%252FWLS_SOA%252Fess_server1%252FESSAPP%26type%3Dscheduler_service%26appContext%3DenabledApp
Additional malformed string in second reload URL:
#!6%40%2Fai%2Fess%2FlistSchedules%40%3Ftarget%3D%252FFarm_WLS_SOA%252FWLS_SOA%252Fess_server1%252FESSAPP%26type%3Dscheduler_service%26appContext%3DenabledApp
Note that this happens only in the above mentioned firefox browser in Linux OS, this second reload was not happening in my windows latest firefox browser (v 15.0.1), and hence these pages were coming up fine.
Is this kind of behavior a known issue? Or any hints on what could be causing this second reload?
Thanks,
RahulHi,
you would need to file a service request with support and provide a test case for this problem to be analyzed by development. For this you need a support contract. Depending on the JDeveloper version you use, it may be that this old browser hasn't been tested. Also note that with 12c we probably start de-supporting old browsers like this.
Frank -
af:serverListener causing ADF page to hang while refresh
Hi All,
I am working on JDeveloper 11.1.1.5.0
We have developed an ADF application wherein we are using a <af:ServerListener> for implementing table row double-click action. below is the code
<af:clientListener method="handleTableDoubleClick"
type="dblClick"/>
<af:serverListener type="TableDoubleClickEvent"
method="#{UserBean.handleTableDoubleClick}"/>
<af:resource type="javascript">function handleTableDoubleClick(evt) { var
table = evt.getSource();
AdfCustomEvent.queue(table,
"TableDoubleClickEvent", { }, true);
evt.cancel(); }</af:resource>there is a custom method written in UserBean to handle the event.
Now the problem is that when user refreshes this page using 'F5'...the page gets hanged and is not responding. I tried disabling the <af:serverListener> and it works correctly.
Please let me know any method to implement table double click listener without using <af:serverListener> component.
thanks,
RajanOk. I implemented the stated solution. But again there is some issue with the javascript function. I am using JDeveloper 11.1.1.5.0. Below is my implementation.
In my ADF page:
<af:commandButton text="overview" id="overviewButton"
binding="#{UserBean.overviewButton}"
actionListener="#{User.handleTableDoubleClickMethod}"/>and
<af:clientListener method="handleTableDoubleClick"
type="dblClick"/>
<af:clientAttribute name="btnId"
value="#{SuspectBean.overviewButtonId}"/>
<af:resource type="javascript">
function handleTableDoubleClick(event) {
var btnId = event.getSource().getProperty("btnId");
var button = AdfPage.PAGE.findComponent(btnId);
alert("btn"+button);
var actionEvent = new AdfActionEvent(button);
event.cancel();
actionEvent.queue(button, false);
</af:resource>In userBean:
public void handleTableDoubleClickMethod(ActionEvent actionEvent){
overviewTab.setDisclosed(true);
public void setOverviewButton(RichCommandButton overviewButton) {
this.overviewButton = overviewButton;
public RichCommandButton getOverviewButton() {
return overviewButton;
public String getOverviewButtonId() {
return getOverviewButton().getClientId(FacesContext.getCurrentInstance());
}When I am executing the code, i put alert statement in javascript to debug. I am getting var button value as 'undefined'. I am getting btnId correctly.
is there some different version of javascript code required in JDev 11.1.1.5.0? Please help me with this.
thanks,
Rajan -
Hi All,
I'm using 2 parameters Date From and Date To in my ADF page, where the search is based on a date Range.
Its throwing an error showing Error: For Input String "2010-09-11"
Is it because of the format? Is there any specific format I have to change this to?
version : 11.1.1.3
Thanks,
SatishHi,
You could try going to ViewObject -> Date Attribute -> Control Hints
and set:
Format Type = Simple Date
Format = yyyy-MM-dd
Gabriel. -
Concatenate two columns in Obiee 11g
Hi,
I am trying to concatenate two columns from same table in OBIEE 11G , i tried all below syntax
cast("Period"."Year" as Varchar)|| cast ("Period"." Month Name" as Varchar)
cast("Period"."Year" as char)|| cast ("Period"." Month Name" as char)
contact(cast("Period"."Year" as char), cast ("Period"." Month Namer" as char))
I am getting this error as - Invalid Alias Format : Table_name.Column_name require . Plz Help me Guys
Thanks
Edited by: Neha on Apr 16, 2012 3:41 PMColumn forumal example based on vanilla usage tracking RPD:
cast("Query Time"."Year" as varchar(4)) || "Query Time"."Month"BTW: "Month Name" implies a string already so I doubt you'll need to cast it as one...
C. -
Concatenate Two Fields Using EQL
I am trying to concatenate two fields my company has in Endeca and am not being able to accomplish this. I have a Call_Num field and a Task_Num field. I would like to combine these fields with a hyphen in between. In the SQL queries I have written, I've been able to do this by typing: Call_Num || '-' || Task_Num. I tried this in EQL and am told that it doesn't recognize the ||. I tried using the keyword Concat (like you do in Excel) - CONCAT(Call_Num, '-', Task_Num), and it didn't recognize that either. I spoke to someone else in my company who uses Endeca and they told me that I need to convert Call_Num and Task_Num to integers (both fields are currently formatted as text - which is what I want, because Task_Num usually starts with a 0), multiply them by 1000 and then add them together. That isn't what I'm looking for either.
I feel like I'm banging my head against a brick wall. I've been working on this simple task for about an hour now and have not met with any success.
Any assistance you can provide would be greatly appreciated.EQL is for run-time querying, whereas you want the index to contain this as a concatenated property. Either generate this property as a concatenated version in your data feed to Endeca, or add a Record Manipulator to your pipeline of:
<EXPRESSION TYPE="VOID" NAME="CREATE">
<EXPRNODE NAME="PROP_NAME" VALUE="_YourConcatenatedAttribute"/>
<EXPRESSION TYPE="STRING" NAME="CONCAT">
<EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
<EXPRNODE NAME="PROP_NAME" VALUE="Call_Num"/>
</EXPRESSION>
<EXPRESSION TYPE="STRING" NAME="CONST">
<EXPRNODE NAME="VALUE" VALUE="-"/>
</EXPRESSION>
<EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
<EXPRNODE NAME="PROP_NAME" VALUE="Task_Num"/>
</EXPRESSION>
</EXPRESSION>
</EXPRESSION>
Define a property in your pipeline and then map "\_YourConcatenatedAttribute" to this (the "_" prefix just reminds you that the source attribute is programmatically generated rather than being the name of a property in your source data). You can then use this concatenated property for any sorting, filtering etc. you want to do.
Michael -
How to detect that ADF page has completely loaded with OpenScript
In Selenium tests I use AdfPage.isSynchronizedWithServer to detect whether an ADF page has completely loaded. I attempted to do the same with OpenScript by doing something like:
boolean loading = true;
while (loading) {
String[] result = web.document("/web:window[@title='*']/web:document[@index='0']").executeJsFunction("AdfPage.PAGE.isSynchronizedWithServer()", null);
if (null != result && result.length > 0 && "true".equalsIgnoreCase(result[0])) {
loading = false;
} else {
think(5.0);
unfortunately this fails with
ERROR [1] Error in section Run at line unknown. An unexpected exception occurred in the script. Script section: Run. Caused by: Exception occured.
java.lang.Exception:
at oracle.oats.scripting.modules.webdom.api.elements.DOMDocument.executeJsFunction(DOMDocument.java:1043)
Anyone know how to call ADF JS from OpenScript or alternatively what is the recommended way to make sure that the ADF page has loaded completely ?Hi,
when user logged in set a attribute in the session using
sess.setAttribute("var","value");
Now in ur JSP get this attribute if its null then ur session has expired an send the user to login page.
sess = requset.getSession(false);
String/Object value = sess.getAttribute("var");
if(value==null)
//send it to Login page
}
Maybe you are looking for
-
Re-download PSE on new computer for free
Hi, My computer crashed, and I want to know if I can re-download another copy of PSE? I have my serial number from when I originally purchased it.
-
Can no longer burn dvds or upload
Recently my premier elements 11 stopped being able to burn a dvd or upload to youtube... dvd just goes to indexing but never continues. Upload to youtube stops at 81 % and freezes. No real error messages. Tried re-installing software but does the sam
-
Apps on my iPod touch with iOS6 are quitting inadvertently while using! Please solve!
-
We have migrated from SP 2010 to SP 2013. When we are trying to create list template from the migrated OOB custom list. List template successfully created but it is not appearing in Add an app section in SP 2013.
-
I'm having an issue with cover flow view of images in OS 10.6.8 Whenever a jpeg or tiff file is edited in Photoshop (image size not changed) the preview of that picture in cover flow view becomes smaller, pixelated and it never clears up. Cover flow