How to set in LOV the username by default?
Hi everybody!
I am trying to bind the userName in a LOV Query Attribute by default and I need the Blank item too.
I followed this thread
Need help in Bind variable in AF Query LOV
and it works pretty well (Default: viewObject.DBTransaction.session.userPrincipalName) but when I select this "Blank item" get this error:
oracle.jbo.JboException: JBO-29000: Unerwartete Exception abgefangen: java.lang.reflect.UndeclaredThrowableException, Meldung=null
at oracle.adf.model.binding.DCIteratorBinding.reportException(DCIteratorBinding.java:363)
at oracle.adf.model.binding.DCIteratorBinding.executeQuery(DCIteratorBinding.java:2097)
at oracle.jbo.uicli.binding.JUSearchBindingCustomizer.applyAndExecuteViewCriteria(JUSearchBindingCustomizer.java:590)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:357)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
"Blank item" works if I use String value by default but i need the current user.
Thanks
Hi Krishna,
You don't mention what platform you are running on, but I will presume it is a Windows platform. In the Windows architecture, the printer driver is the one that sets the default paper size/tray. Applications like Reports can override the default printer tray selection if they wish, but this is generally considered to be a bad practice, so Reports doesn't do this.
There are two possible solutions that I know of: (1) if all the users of a given report always use the same printer or same printer model, then you can explicitly choose the desired printer tray to use by calling SRW.SET_PRINTER_TRAY in the Before Report Trigger, the Between Pages trigger, or in an appropriate format trigger. (2) you can create another printer queue in Windows against the same physical printer, choosing a different printer tray as the default tray. Then people wishing to print using a different paper size/orientation can choose the appropriate printer "name" to print with.
regards,
Stewart
Similar Messages
-
How to set and retrive the index log path stored by parameter LOG_DIRECTORY
how to set and retrive the index log path stored by parameter LOG_DIRECTORY.
http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/lsnrctl.htm#sthref72
http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/cmctl.htm#sthref239 -
How to set values to the structure containing a node with cardinality 0..n
Hello.
I 'm trying to set values for the node with cardinality 0..n. The node type is "Fields".
<xsd:complexType name="Field">
<xsd:sequence>
<xsd:element name="fieldCode" type="xsd:string"></xsd:element>
<xsd:element name="displayValue" type="xsd:string" minOccurs="0"></xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="Fields">
<xsd:sequence>
<xsd:element name="field" type="tns:Field" minOccurs="0" maxOccurs="unbounded"></xsd:element>
</xsd:sequence>
</xsd:complexType>
I need to set several values for the element "fieldCode" but it has cardinality 0..1 and BPM does not allow it but I did not find any option about how to set values for the structure of type "Fields". Could you help me?
Best regards,
Timur SemenchukHi Marcus,
If there is no way you could change the cardinality of the node, and thus it can contain 0..n items, I think you should create-and-add a new element programmatically.
Since the collection can contain zero elements, I would add a 'new' button, which upon clicking adds one new element via:
IYourNodeElement yourNodeElem = wdContext.nodeYourNode().createYourNodeElement();
wdContext.nodeYourNode().addElement(yourNodeElem);
Hope this explains a bit!
Best,
Robin van het Hof -
Does anyone know how to set alerts in the iCloud calendar of Outlook 2010 for PC?
Does anyone know how to set alerts in the iCloud calendar on Microsoft Outlook 2010 for a PC? Outlook gives me a warning message and does not allow me to save alerts for calendar events created in iCloud calendar. It will allow me to save events in the non-iCloud calendars.
Ignore what office says, when the warning comes up saying that the reminder will not work click on yes,
I just tested it and i had the reminder on my ihpone in outlook and also as i had the calendar open in safari it popped up on there too ( I wasn't aware it did that) -
How to set focus on the last row of JTextPane
how to set focus on the last row of JTextPane?
import javax.swing.*;
import javax.swing.text.html.*;
import java.awt.*;
import java.awt.event.*;
public class MyGUITest extends JPanel implements ActionListener
{ public static void main(String[] args)
{ SwingUtilities.invokeLater(new Runnable()
{ public void run()
{ JFrame f = new JFrame("My GUI");
MyGUITest GUI = new MyGUITest();
GUI.setOpaque(true);
f.setContentPane(GUI);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setLocationRelativeTo(null);
f.setVisible(true);
JTextPane txtP;
JButton add;
HTMLEditorKit hek;
HTMLDocument hd;
String txt;
MyGUITest()
{ this.setLayout(new BorderLayout());
this.setPreferredSize(new Dimension(400,200));
txtP = new JTextPane();
txtP.setEditable(false);
txtP.setContentType("text/html");
txtP.setText("");
hek = new HTMLEditorKit();
txtP.setEditorKit(hek);
hd = new HTMLDocument();
txtP.setDocument(hd);
JScrollPane sTxtA = new JScrollPane(txtP);
add = new JButton("add");
add.addActionListener(this);
sTxtA.setBorder(BorderFactory.createTitledBorder(""));
this.add(sTxtA, BorderLayout.CENTER);
add(add, BorderLayout.SOUTH);
new Thread(new Runnable()
{ public void run()
{ while(true)
{ try
{ Thread.sleep(100);
}catch(InterruptedException ex)
{ ex.printStackTrace();
appendText("This is <b>HTML</b> text");
//add.doClick();
}).start();
public void actionPerformed(ActionEvent e)
{ txt = "<b>asd</b>";
try
{ hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
}catch(Exception ex){ ex.printStackTrace(); }
public void appendText(String txt)
{ try
{ hek.insertHTML(hd, hd.getLength(), txt, 0, 0, null);
}catch(Exception ex){ ex.printStackTrace(); }
}thanks~anIdiot wrote:
im not sure what is the caret location...So don't youthink you should have looked for it in the API?
anyway, i want the scroll bar to scrolled down automatically when the output is displayed.
normally, the scroll bar is scrolled down automatically when a new text is inserted, but it doesnt work on this timeGo through camockr's http://tips4java.wordpress.com/2008/10/22/text-area-scrolling/
db -
How to set Border in the Excel using UTL_FILE ?
Hi all,
Any one aware of
How to set Border in the Excel using UTL_FILE ?
Am doing excel creation from a stored procedure.
Thanks
DoraHello Dora,
if you need more than simple csv: at Re: How to save a query result and export it to, say excell? you can find links to different solutions. At least the package behind the second link supports defining your own formats (and has a tutorial how to do it).
Regards
Marcus -
How to get to see the usernames and passwords for wifi logins on iPad
How to get to see the usernames and passwords for wifi logins on iPad.
You can't access that on an iPad. The iPad does not have a Keychain Access type app like the Mac has. Maybe an application like iExplorer on your Mac will let you see them, but you can't see them on the iPad itself.
-
TS1574 How do set my Built-in microphone to default?
I am using a OS X Version 10.9.1 and i want to know how to set my Built-in Microphone to Default it's a simple question and no one seems to have an answer
Ok i can hear my voice now but the settings for the Built-in Microphone are not the same as before
-
How to set space between the fields in SearchPG- Display issue
Hi Friends
I Have created a searchPG with a QueryRN , In my searchPG i have some display issue after running the page its looks like this
For Example assue its a page with 3 field and one table region
Employee no
Employee name
Phone no
ResulttableBut i want my searchPG should hav some space between two field as shown below
Employee no
Employee name
Phone no
ResulttablePlease adviice me
I appreciate all ur advice
Thanks
A.THi Peddi
In my structure pannel I have simpleSearchPanel below that only i have the two lov fields ex: emp_no and emp_name . how to set the spacer between this From which Region where can find the spacer bean what proerty do i need to set
Thanks
AT -
How to set focus on the title of JTabbedPane
I have created a JTabbedPane and added three JPanels to it. They are titled, say "Panel 1", "Panel 2" and "Panel 3". And each of them contains buttons and text areas. Since this app is for physically disabled users, it must provide navigation through these three tabs with keyboard operations only (i.e. without mouse clicks).
When the title "Panel 1" gets focused, users can go to "Panel 2" by the right arrow key. When Panel 2 is brought up, however, the title "Panel 2" does not get focused. Instead the first button inside panel 2 is focused. In order for users to navigate to 'Panel 3" by the arrow key, the title "Panel 2" has to be focused. How do I set focus on the tab title?
I have tried 'requestFocus()' on Panel 2, but it does not work. Please help me with this issue. Thanks in advance.I'd be quite interested to know if this can be doen as well so I thought I'd post this message to move it to the top of the board.
Thanks. -
How to set widescreen for the guest OS (Oracle Linux 5) in Oracle VM 4.1.12
Hi all
I have got a concert about how to set the guest system(Oracle Linux5) to use widescreen? appreciate whatever you can help!
Thanks,You're looking for the VirtualBox forums. https://forums.virtualbox.org/
This forum is for discussion of Oracle VM Server. -
How to set "Identity" of the MDM Payload from iPhone Configuration Utility?
Does anybody know how to set the "Identity" of the Mobile Device Management (MDM) payload of a Configuration Profile from iPhone Configuration Utility (iPCU)? The description says that this is the "Cryptographic credential used for authentication" and I should "Add credentials in the Credentials payload". Any help is appreciated.
The Identity field in the MDM payload section of a configuration profile can only be set AFTER you have set the correct credential in the Credentials section. If you have set the correct credential in the Credentials section, then you will (in my experience) only have one choice for Identity in the MDM payload section. It will be the correct choice fortunately.
To set the correct credential in the Credentials section of the configuration profile, you must have a valid personal certificate in the Windows certificate store. If you have a valid personal certificate in the Windows certificate store it will show up in the (very long) list of certificates you can choose from when you click on Configure in the Credentials section.
You should be prompted for the password for 'exporting your identity'. Fill in both boxes and then click on OK. The set the password again. Yes, the password must be entered three times.
At this point you can go back to the MDM payload section and everything should be OK.
Note that my comments only apply to Windows. My system is Windows 7. However, only version of Windows probably works the same. -
How to set tabs and how to set them outside the margins of my main body of text
I type lots of docs where I have a body of text, indented, and then there is an action letter, A,B,C etc, out to the right. Can't see how to set the body of text plus separate tab outside the margin in Pages. Could do it in MS Word. Pages looks great, but I'm stuck on a few things I used to do. Can anyone help?
ThanksHi Peter
Thanks for the reply.
Here is a sample of the text:
you'll see that the D, C, B etc are squashed up to the text, I can't move their tab outside the margin. On Word (dare I say it?) I could set my right hand margin and still have a tab further out. Don't know that your anchoring idea is the thing. Is there another way to limit my text? I wonder about columns, although then all the ABCs will be in the second won't they?
Any ideas?
Thanks again
Nonie -
How to set ref_to_message_id in the abap proxy
Hi,
Does anyone have idea, how to set ref_to_message_id of a client proxy in the server proxy? My problem is, I send a message to a server proxy. The server proxy receives the message, retrieves the message id and tries to set the ref_to_message_id of the message, which will be sent to a client proxy, with its message id. Can anyone help?
regard
huhi Bin,
plz check this link it will be useful
Re: Importance of Message ID in soap adapter
How to retrieve file size and XI message ID?
/people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi
regards
sasi
<b>Reward if useful</b> -
How to set proxy for the programme
Hello Everyone
I am learning Java Network programming. My connection to Internet has a proxy. When I use URL class to download the information from Internet, it cannot work. I think maybe I have not set the proxy in the programme. Does anybody know how to set it?
Best wishes
Aaron Cui LuSystem.getProperties().put( "proxySet", "true" );
System.getProperties().put( "proxyHost", "proxyMachineName/IP" );
System.getProperties().put( "proxyPort", "proxyPort" );
Maybe you are looking for
-
Hi Ciscc Team, This is Raghu Sharma, actully i configured Site-to-Site VPN with Nat-control it's working fine but when i am using Packet-tracer so i am geting some error in last point Result: input-interface: outside input-status: up input-line-statu
-
Multiple Popups when I want one at a time
Hi, I'm writing a gui, and I am having difficulties managing popups. Some of my tasks require a password, so I made a task performer class that prompts for a password and performs the given task with that password. Now the problem is, right after I c
-
Anyone knows what is stored in the CPDARHIVEDLINKS. I have some error when i save folio that there is Primary key voilation. When i delete the rows in this tabele first save of folio goes well but when i try to put another document inside there is er
-
News page on iweb..
Hi, I have just recently started using iweb and i wish to use it to help a friend create a small website where he needs to have some sort of news feed on the front page. I have had a look around but i have yet to find any way or widgets that let you
-
Drill down to other dimensions
Hi, I'm faced with some users that are used to being able to drill down to other dimensions in BEx reports from free characteristics. For example - Adding Cost Centers to Profit Centers in rows. Is there an elegant way to handle this with BPC reports