Need help in displaying multiple attachments in a OAF Page
Hi,
I need to display attachemts of requisition line in a OAF Page(Notification Detials Page)and the attachments can be more than one.My custom VO returns it as a single string like url1, url2.. etc.
I need to show them as seperate links.
I tried using the Item Style as LINK.But it is not working.It is prefixing the server url before the View Attribute and creating a single link.
Any help in this regard will be appreciated.Thanks in advance.
Srini
Hi skeerthi,
If you are using the core attachments table (FND_ATTACHED_DOCUMENTS and the like), you can have a look on the Developer's Guide on chapter 4: Implementing Specific UI Features, section "Attachments", there is a seeded region available for displaying multiple attachments.
If you are not, then i'd recommend refactoring :D... Just kidding, it would be nice to use the core feature, but if the table is custom, and the links are stored separated by commas, you will have to write controller code to implement that. That can be done by:
1) Creating an Application module method that uses StringTokenizer to tokenize the attribute String (use getViewObject().getCurrentRow().getAttribute() to get the comma-separated value) and return that to the controller
2) In the controller, receive the StringTokenizer and for each token, use the api createWebBean() to create an OALinkBean and add it to a layout region using addIndexedChild() api.
This way you will dinamically create a Link for each attachment. If your layout region is, for example, tableLayout, you can create a rowLayout for each token, then create a Link, add the link to the row layout and finally add it to the tableLayout. By doing so, you will create a table-style attachment region.
Hope it Helps
Thiago
Similar Messages
-
Need Help on Sending Multiple Attachments
Hi to all,
I hope some one will help me.. Im stuck with this one. I can only send one attachment.
Is there someone who know how to send an mail with 2 or more attachments?
My code is below, I followed this code from the toturial:
Hope for a kind reply. :-)
Thankz..MimeMessage myMessage = new MimeMessage(s);
InternetAddress fromRec = new InternetAddress(strFrom);
myMessage.setFrom(fromRec);
Address[] toAddress = InternetAddress.parse(strTo);
myMessage.addRecipients(Message.RecipientType.TO, toAddress );
Address[] toCC = InternetAddress.parse(strCC);
myMessage.addRecipients(Message.RecipientType.CC, toCC );
Address[] toBCC = InternetAddress.parse(strBCC);
myMessage.addRecipients(Message.RecipientType.BCC, toBCC );
myMessage.setSubject( strSubject );
MimeBodyPart messageBodyPart = new MimeBodyPart();
messageBodyPart.setContent(strMessage + "<BR>" +URLResponse , "text/html" );
Multipart multipart = new MimeMultipart();
multipart.addBodyPart(messageBodyPart);
/*Part two is attachment*/
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource( fileRepository);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(fileName);
multipart.addBodyPart(messageBodyPart);
/* Put parts in message*/
myMessage.setContent(multipart);
/* End */
Transport.send(myMessage);Your code is only adding one attachment. Just repeat the code
that adds an attachment to add more than one. -
Need help to display n number of records per page
I am trying to display the records using the RowSetIterate loop.
After showing 10 records, I break the loop using the
RowSetNavigate. After that I want to display the next 10 records
which I am not able to do. Can Anybody help?
The code is as follows
<%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
<jbo:ApplicationModule id="am"
configname="testPackage.TestPackageModule.TestPackageModuleLocal"
/>
<jbo:DataSource id="ds" appid="am"
viewobject="testEntityView" />
<table border="0">
<tr>
<td ALIGN="right"><jbo:DataScroller appid="am"
viewobject="testEntityView" /></td>
</tr>
<tr><td>
<table border="1">
<jbo:RowsetIterate datasource="ds" >
<% if (ds.getRowSet().getCurrentRowIndex() == 9)
{ %>
<jbo:RowsetNavigate datasource="ds"
action="Last" />
<% } %>
<tr>
<TD>
<jbo:ShowValue
datasource="ds" dataitem="Fullname" /></TD>
</tr>
</jbo:RowsetIterate>
</table>
</td>
</tr>
</table>
</table>
</BODY>
</HTML>resolved this issue by using FlowN functionality available in BAM
-
Need help in creating multiple signature forms?
need help in creating multiple signature forms that can be digitally signed in adobe reader
Automator gets a bit unweildy when trying to vary things outside of what the actions provide. Since you are already using an AppeScript in your workflow, might as well do the whole thing:
set baseFolder to (path to desktop) -- the location to create the folder
display dialog "Please provide a new folder name:" default answer "test"
set folderName to text returned of the result
repeat -- keep repeating until a number is returned
display dialog "How many subfolders?" default answer "5"
set theNumber to text returned of the result
try -- test the result
set theNumber to theNumber as integer
exit repeat -- success
end try
end repeat
tell application "Finder"
try -- make new folder
set newFolder to (make new folder at baseFolder with properties {name:folderName})
on error number -48 -- skip errors if the folder is already there
set newFolder to ((baseFolder as text) & folderName) as alias
end try
repeat with X from 1 to theNumber
try -- make new subfolder
make new folder at newFolder with properties {name:folderName & X}
on error number -48 -- skip errors if the folder is already there
end try
end repeat
end tell -
How to display multiple attachments in UWL item in portal?
HI,
How to display multiple attachments in UWL item in portal?
I want to display more than one attachment in UWL body,present its dispalying one attachment.
Pls help on this
Thanks,
Bheem
Edited by: v bheem on Aug 4, 2009 3:10 PMHi,
Are you able to manage this! Pls do let us know if you have done any configuration changes! -
Need help Setting up Multiple Static Ip , 1 for each port of the fios router
Need help Setting up multiple Static Ip on my fios router
I have been trying to figure out how to set up multiple ip in my fios router.
However I kind of managed how to set up multiple static ip However the way I want it is for each port of my router to have an external ip signed to it. ( like 4 different modem in 1 )
Verizon gave me 5 static ip but they can not help me how to set it up.
Have anyone here done more then one static ip on different ports? I assume that the process will be the after the second static ip.You want to set up Static Nat. You will not assign the IP to a port, but rather to a local machine. Figure out what machines you want your IP's to go to. Under the firewall section you will see static nat. Pick the machine you want and enter one of the IP's you were assigned.
-
Need help on displaying the callers name on ip phone with cme using external directory
Hello Guys,
Need help on displaying the callers name on ip phone with cme while using external directory
Thank you,
KhajaThanks for your help,
Does it 100% work with CME. We use SIP and 2ring for external directory? Thanks you. -
How to display a google map in OAF page?
Hi All,
I want to display a Google map in OAF page
Please tell me whole procedure how i complete the required task
Thanksthese may help you.
Google map integration to EBS -
How to make adding attachments in the oaf page mandatory to the user.
Dear Friends
I did a attachment section with item style as attachment table,entity map,primary key concept in my details page
But I want to make this section (adding attachments in the oaf page) mandatory to the user.
Without adding the attchment user should not click SUBMIT.
[ Just like we give REQUIRED property to ant text input fileds to make entering them mandatory , Is there any property to set ]
Please share ur ideas .Please help.
Thanks
AravindaGyan's Oracle Application Framework Blog: OAF - Making mandatory Attachement Mandatory
iWiDi - This is how to make attachments mandatory in iExpense.
--Sushant -
Hi guys need Help with Displaying Splash Screen?!!?
Hi Guys.
Sorry for the last incomplete post my mistake!
I need help displaying a splash screen as an advertisment or something before i have my main application run.
Here is the code i wrote (it works as if it were a seperate application)
package MajourProject;
import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.Robot;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JWindow;
* @author Matt
public class SplashScreen extends JWindow
public SplashScreen()
int UpTime = 20000;
Start(UpTime);
public void Start(int UpTime)
ImageIcon ii = new ImageIcon("src/1.jpg");
JScrollPane jsp = new JScrollPane(new JLabel(ii));
JProgressBar Bar = new JProgressBar();
getContentPane().add(jsp);
setSize(853,303);
centerScreen();
setVisible(true);
try
Thread.sleep(20000);
dispose();
catch(Exception IE)
private void centerScreen()
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (int) ((d.getWidth() - getWidth()) / 2);
int y = (int) ((d.getHeight() - getHeight()) / 2);
setLocation(x, (y-100));
public static void main(String [] args)
new SplashScreen();
}but i now have a problem as i already have a main application done as i wrote this seperately. I now need to combine the two together. So what i did was in my Main Application wrote:
Splash_Screen SS = new Splash_Screen();it then runs my Splash Screen class which i re-wrote to look as such:
package MajourProject;
import java.awt.AWTException;
import java.awt.Dimension;
import java.awt.Robot;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JWindow;
* @author Matt
public class SplashScreen extends JWindow
public SplashScreen()
int time = 15000;
Start(time);
public void Start(int UpTime)
ImageIcon ii = new ImageIcon("src/1.jpg");
JScrollPane jsp = new JScrollPane(new JLabel(ii));
JProgressBar Bar = new JProgressBar();
getContentPane().add(jsp);
setSize(853,303);
centerScreen();
setVisible(true);
try
Thread.sleep(20000);
dispose();
catch(Exception IE)
private void centerScreen()
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (int) ((d.getWidth() - getWidth()) / 2);
int y = (int) ((d.getHeight() - getHeight()) / 2);
setLocation(x, (y-100));
}it obviously runs the default constructor which then runs the other methods in the class but it doesn't seem to show can anybody help me to find out whats wrong? It seems to be there just before the main application launches but only for a split second. And when i am waiting while the thread is sleeping the area i have defined the Content pane for he cursor goes to the loading icon! I don't know if this makes any sence to you but if you can help me it would be most apreciated.
Thanks.SpearOne wrote:
Hi Encephalopathic
why would it work if i put it in it's own application surely it wouldn't be caused by this thread.sleep?? everything after it is in fact put to sleep. In its "own" application, nothing happens after it is displayed.
if it is the problem then could you please give me some code to add quickly to test??
import java.awt.Dimension;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JProgressBar;
import javax.swing.JScrollPane;
import javax.swing.JWindow;
import javax.swing.Timer;
public class SplashScreen extends JWindow
private static final String IMAGE_PATH = "src/1.jpg";
private static final int UP_TIME = 15000;
public SplashScreen()
Start();
public void Start()
ImageIcon ii = new ImageIcon(IMAGE_PATH);
JScrollPane jsp = new JScrollPane(new JLabel(ii));
//JProgressBar Bar = new JProgressBar();
getContentPane().add(jsp);
setSize(853, 303);
centerScreen();
private void centerScreen()
Dimension d = Toolkit.getDefaultToolkit().getScreenSize();
int x = (int) ((d.getWidth() - getWidth()) / 2);
int y = (int) ((d.getHeight() - getHeight()) / 2);
setLocation(x, (y - 100));
public static void main(String[] args)
final JFrame frame = new JFrame("Main Frame");
frame.setPreferredSize(new Dimension(300, 200));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setLocationRelativeTo(null);
final SplashScreen splash = new SplashScreen();
splash.setVisible(true);
Timer swingTimer = new Timer(UP_TIME, new ActionListener()
public void actionPerformed(ActionEvent e)
splash.dispose();
frame.setVisible(true);
swingTimer.setRepeats(false);
swingTimer.start();
} -
Need help on "Displaying items for Library System"
Hi folks, i am currently new to this forum and I need help on this problem ASAP.
I currently doingSorry, I accidentally hit the enter button so i start again.
I currently doing a online Library system and I hve been assign the task of doing the "search items" use case.
The situation is like this, my system retrieves 50 items based on the user selection and displaying them on a page.
The problem is I do not know how to seperate the items cos I don wan to display everything on the page, wat i wan is like displaying first 20 items on the page and when the user click the "next" link, the next 20 items will be display on the same page.
My teacher ask me to use custom tags(WHICH I NEVER LEARN BEFORE) so
please give me advise or related links as soon as possible cos I have to hand in the project in two weeks time. -
Need help in displaying a region in a page
Hi,
I'm looking for the following scenario.
Scenario:_
2 Regions "region_ABC" , "region_XYZ" are dragged and dropped on EM page "PAGE_1". When the "PAGE_1" is displayed first time only the region "region_ABC" will be displayed. When a specific radio button of the "region_ABC" is selected another region "region_XYZ" needs to be displayed in that page "PAGE_1".
I tried to use the Partial Triggers which didn't work. Please provide valuable suggestion/pointers.
Thanks in advance
-SukumarHi Sukumar:
This is the typical case for you to use "Control Flow Case".
You need to create a Bounded task flow say: task-flow1. In this task flow, region_ABC and region_XYZ will be 2 Views in it. Then drag and drop a "Control Flow Case" onto this task-flow1.xml between view: region_ABC and view: region_XYZ. The outcome of the "Control Flow Case" can be anything you like in literal: "ABC2XYZ". Next, go to your region_ABC.jsff file, click on the radio button, and go to its property editor. In the "Action" attribute, put "ABC2XYZ" there.
You drag and drop the task-flow1 onto your EM page "PAGE_1".
That's it!
Good luck,
Alex -
Need help in countdowntimer in java bean for jsp page
hi..im student..i need help with countdowntimer in jsp page..with java bean component..im use XHTML MP for my jsp page so i can use it in cellular phone with WAP 1..can anybody help me with this problem..thx
hi..im student..i need help with countdowntimer in jsp page..with java bean component..im use XHTML MP for my jsp page so i can use it in cellular phone with WAP 1..can anybody help me with this problem..thx
-
Need help with displaying content on multiple pages
Hi I'm kind of a dreamweaver newbie and i'm a little in over
my head. I'm trying to design a web site with the same content
appearing on multiple pages. Here's the current site...
http://home.comcast.net/~gascec/cecnh20/index.html
I'm trying to establish the top bar and side bars of links
and the logo on each page from one point so i don't have to change
forty pages if i update a link.
I know there's a way to do this and i thought it was using a
CSS page but i can't figure it out and i'm running out of time.
HelpGot it. Thank you. I'm having one other problem though. I
keep getting this bizare message every time i save or try to use
the template:
The is an error at line 41 column 7 (absolute position 2486)
of "~pathandfilename.dwt": Nested editable regions
The only thing at line 41 is the <body> tag. I took all
the formating out to try to trim this out... any thoughts about
this one.
Thanks G -
Need help to display content in a KM folder
I need to develop a component which will accept a KM folder name as an input field from UI (for eg : \documents\folder1) and will display all the subfolders and files inside that KM folder along with its details. Need info on how i can implement this and if anyone has already done something similar please help.
Regards
Shabeer
Edited by: Mohammed Shabeer on Mar 18, 2009 5:31 AMHi
You can achieve this using KM API's.
Assuming your folder location is /documents/xxx. chekc the sample code below.
IUser user = request.getUser(); //You can use cmadmin service as alternate option//
String location = "/documents/xxx";
IResourceContext resourceContext = new ResourceContext(user);
RID rid = RID.getRID(location);
IResource resource = ResourceFactory.getInstance().getResource(rid,resourceContext);
ICollection collection = (ICollection) resource;
IResourceList resourceList = collection.getChildren(); //Gives list of files and folders inside the KM location//
for(int i=0;i<resourceList.size();i++) {
IResource res = resourceList.get(i);
//Get the required info from the resource object and display
For further details, check the link below
http://help.sap.com/javadocs/NW04S/current/km/index.html
Regards,
Yoga
Maybe you are looking for
-
Acrobat Pro 10.1.1 network issue
Hi everyone, Im having an issue with Acrobat Pro X. About two weeks ago we did a server migration. Since then everyone (about 60 people) have been running into a performance issue with Acrobat X. Everyone uses Word 2007 and the office plugin to creat
-
Dynamic internal table Created from current classic ALV layout?
Hi, Currently I have a dynamic ALV column output who's number of columns is dependent on t_output. ALV Sample: MANTR WK1 WK2 WK3 ... 10001 10 20 30 10002 5 10 15 I see this option, Get the ALV output, so th
-
MacBook Pro with Cinema HD 30"
Does MacBook Pro 2.0 Ghz video adapter (ATI Radeon XT1600) suitable for Apple Cinema HD 30" connection?
-
Install an old leopard on a new i5 MACBOOK PRO...
i just bought a new macbook pro 15" i5 with snow leopard on it.. may i install an older version of leopard like the basic 10.5 ??
-
IPhone 4S was working fine until recenty after updating the software to the 5.1 version
My iPhone 4s was working fine until I recently updated the software to version 5.1, now it locks up on nearly any screen and reverts back to the main screen. Even in settings, if I go in a few tabs in settings all of a sudden it takes me back to the