How can I set bind parameter as Default Display Value in JHeadstart

Hi,
I am using -
JDeveloper Studio Edition Version 10.1.3.1.0.3984
JHeadstart Release 10.1.3.1.26
Can anybody help me for the following:
I am using a super class of ViewObjectImpl where I am definning a bind parameter (Student ID) using login userid:
if ("p_std_id".equals(bindParam[0])) {
sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
bindParam[1] = studentNumber_from_LDAP;
Then I defined p_std_id in Bind Variables tab in VO Editor and used that in Where clause in the SQL Statement tab.
This is working fine.
Now what I want to do is:
I want to put the value of p_std_id as Default Display Value for a field.
Can anybody let me know how I can put the value of p_std_id in JHeadstart Application Definition?
Thanks
Syed Jabbar
University of Windsor
Windsor, ON, Canada

Hi Jan and Steven,
Thanks for your reply.
I need to show the default value in the table layout.
Steven, could you please give some more hints about EL Expression?
To obtain the value of p_std_id now and pass it on as bind param, I am using a class extending ViewObjectImpl. Inside that class I am using the following method:
I'd appreciate if you could help for the EL Expression.
Thanks
protected void executeQueryForCollection(Object Object, Object[] bindParams,
int i) {
String userId = ((ApplicationModuleImpl)getApplicationModule()).getUserPrincipalName();
try{
getLdapInfo(userId);
catch(Exception e) {
sLog.debug("executeQueryForCollection: Userid = " + userId);
if (bindParams != null)
for (int j = 0; j < bindParams.length; j++)
Object[] bindParam = (Object[])bindParams[j];
if ("p_user_id".equals(bindParam[0])) {
sLog.debug("executeQueryForCollection: found bind param p_user_id, setting value to " + userId);
bindParam[1] = userId;
if ("p_emp_id".equals(bindParam[0])) {
sLog.debug("executeQueryForCollection: found bind param p_emp_id, setting value to " + employeeNumber_from_LDAP);
bindParam[1] = employeeNumber_from_LDAP;
if ("p_std_id".equals(bindParam[0])) {
sLog.debug("executeQueryForCollection: found bind param p_std_id, setting value to " + studentNumber_from_LDAP);
bindParam[1] = studentNumber_from_LDAP;
super.executeQueryForCollection(Object, bindParams, i);
Thanks
Syed

Similar Messages

  • How can I set my safari to default to private browsing?

    How can I set Safari to use Private Browsing as its default?

    Use Firefox instead it allows this (and much more)
    https://blog.mozilla.org/blog/2013/01/28/privacy-day-2013/
    https://www.mozilla.org/en-US/plugincheck/
    Install the add-ons of Ghostery (set to delete Flash and Silverlight cookies), Ad Block Plus, TrackMeNot, Click&Clean, and HTTPEverywhere that should keep your machine always clean everytime you quit.

  • How can I set VM parameter in NW developer studio?(not in configtool)

    hi all,
         where can I set VM parameter in NW developer studio? thanks very much!!!

    Hi,
    this only makes sense if you test standalone applications! In this case: Run... -- Java Application -- New -- (x)=Arguments -- VM Arguments.
    If you want to set the VM parameters for the JVM running NWDS itself: The NWDS icon calls for example <i>C:\Programme\SAP\JDT\eclipse\SapIde.exe -vm "C:\Java\jdk1.4.2\bin\javaw.exe"</i> - try to add the parameters just behind the javaw.exe before the ending ".
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Every time i get on my computer the wifi seaches for networks. How can I set this to a default setting?

    Every time I get on the computer, it searches for my wifi. How can i make it my default?
    thanks for your help!

    Care to share which OS you are using?  iOS is not for computers.

  • How can I set up Apple Mail to display the sender's "from icon" in the header info?

    Hi,
    I have gone into the preferences to set up custom headers, so that the icon sent to me from the email sender will display in the header, but do not see an option for this.  I want to do this for Comcast as a source specifically, as they embed an icon in their official emails and I have been receiving phishing  emails from sender pretending to be Comcast.  Comcast states on their website, that you can see their icon in any mail they send, however, this does not happen on my version of Apple Mail (4.5).
    Here is an image of the info shown on the Comcast website, in case that helps to clarify my question.
    Thanks,
    Kim

    On the Internet Accounts System prefs choose Add Other account…
    Pick Mail account.
    On the first page where you enter username and password, hold down the Option key and the Create button will change to Next. Click that with Option held down.
    You can then manually create the account.

  • I always want google classic, but sometimes i get google beta or google security (or whatever, can't remember its name) when i don't want it. why does this happen and how can i set google classic as the default?

    google is my default on the home page. But when i ask for google or simply open firefox, i sometimes get google beta or google security (or whatever its name is) instead of google classic. I just want google classic. How can i set it as my default. (I have a desk top computer, use firefox, and this never happens.)

    Why Apple can't undo its mistake?
    Whose mistake? The source of the problem:
    I was required to enter my recovery key. Now, there begins that huge flaw. I've forgotten it (I know it was my responsibility to remember it).
    If you had just taken the simple steps of storing your recovery key as Apple tells you to when you set it up, none of this would've happened.
    As it clearly states in the FAQ on 2-step verification: http://support.apple.com/kb/HT5570
    After you turn it on, there will be no way for anyone to access and manage your account at My Apple ID other than by using your password, verification codes sent your trusted devices, or your Recovery Key. You must be responsible for:
    Remembering your password.
    Keeping your trusted devices physically secure.
    Keeping your Recovery Key in a safe place.
    If you lose access to two of these three items at the same time, you could be locked out of your Apple ID account permanently.
    In addition, with two-step verification turned on, only you can reset your password, manage your trusted devices, or create a new recovery key.
    Apple Support can help you with other aspects of your service, but they will not be able to update or recover these three things on your behalf.
    If you aren't responsible enough to do that, you should not have turned the optional security feature on.
    This is your fault, not Apple's.

  • What is the default identity store - and how can I set it?

    Hi,
    I'm running Webcenter on WLS, and using WLS and JPS for the authentication of users. On the WLS Console, if I go to Security Realms -> myrealm -> Providers, I have a list of four different providers.
    If I understand correctly, these four providers are my identity stores. How can I set one as the 'default' identity store? Or see which one is currently the default?
    The reason I'm asking is I have the following code in Webcenter to create a new user in the Active Directory:
          // Get the default identity store
          IdentityStore idStore = WCSecurityUtility.getDefaultIdentityStore();
          // Get the user manager object
          UserManager usermgr = idStore.getUserManager();
          usermgr.createUser(loginName, password.toCharArray(), propertySet);So I have a utility Java class which gives me the "default identity store". Now I want to change the WLS configuration so that the Active Directory in which I want to create new users is the "default" identity store.
    Thanks in advance for any help,
    Ludovic

    Hi,
    Thanks a lot for your help and providing this link. I'd actually already looked at that before, but I don't understand how it clarifies what the default identity store is. The relevant part is this, if I understand correctly:
    OPSS initializes the identity store service with the LDAP authenticator chosen from the list of configured LDAP authenticators according to the following algorithm:
    1.    Consider the subset of LDAP authenticators configured. Note that, since the context is assumed to contain at least one LDAP authenticator, this subset is not empty.
    2.    Within that subset, consider those that have set the maximum flag. The flag ordering used to compute this subset is the following:
        REQUIRED > REQUISITE > SUFFICIENT > OPTIONAL
        Again, this subset (of LDAPs realizing the maximum flag) is not empty.
    3.    Within that subset, consider the first configured in the context.Step (1) will match 2 external AD's and the built-in WLS LDAP, so 3 in total.
    Step (2) will still match 3 in total, as they are all 'sufficient'. In my setup, I need them all to be 'sufficient'.
    Step (3) is a step I don't understand. What is "the first configured in the context"? What context? Do they mean the one that was first created? In that case I can't change the default, right?
    Or do they mean "the first in the list on the WLS Console"?
    Best regards,
    Ludovic

  • How can I set up lightroom 5 in my macbook, so that it becomes my default editing program, so that it starts up when I insert my sd card into the mac

    How can I set up lightroom 5, so that it becomes my main / default editing program & that when I insert my sd card into the mac lightroom starts instead of iPhoto .

    Thanks.  Im new to apple, which preference?
    Sent from my iPhone

  • How can I set up a default (pre-recorded) voicemail greeting on iphone 4s?

    How can I set up a default (pre-recorded) voicemail greeting on iphone 4s?i dont want a custom one with my voice i want the pre-recorded where a lady says my number . how do i get that?

    Voicemail is a cell phone carrier function.  Contact your carrier to see if they have this option.  If not, i'm sure you can download a sound file from the internet with a greeting and add your name.  Then play it back on you PC while holding your iPhone near the speaker when recording the greeting to voicemail.

  • How can I set a permanent default language for Firefox's spellcheck feature, so that I don't have to keep manually selecting the spellcheck language I want?

    I have a few languages installed, and Firefox's spellcheck seems to decide which language to use ''at random''. So I have to keep manually selecting the language I want. 99% of the time I want English. So how can I set English as a permanent default language, and leave the manual selection for those infrequent occasions when I want another language spellchecked?

    Firefox should store the last used dictionary in the spellchecker.dictionary pref that you can check on the about:config page.
    *http://kb.mozillazine.org/about:config
    If you do not keep changes after a restart then see:
    *http://kb.mozillazine.org/Preferences_not_saved
    *https://support.mozilla.org/kb/Preferences+are+not+saved
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do not click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode

  • How can I set a default file for JFileChooser

    Hi. I am developing a p2p chat application and I have to unrelated questions.
    1. How can I set a default file name for JFileChooser, to save a completly new file?
    2. I have a JTextArea that I append recieved messages. But when a message is appended, the whole desktop screen refreshes. How can I prevent that?
    Hope I was clear. Thanks in advance.

    Thank you for the first answer, it solved my problem. Here is the code for 2nd question, I've trimmed it a lot, hope I didn't cut off any critical code
    public class ConversationWindow extends JFrame implements KeyListener,MessageArrivedListener,ActionListener,IOnlineUsrComp{
         private TextArea incomingArea;
         private Conversation conversation;
         private JTextField outgoingField;
         private JScrollPane incomingTextScroller;
         private String userName;
         private JButton inviteButton;
         private JButton sendFileButton;
         private JFileChooser fileChooser;
         private FontMetrics fontMetrics;
         private HashMap<String, String> onlineUserMap;
         public void MessageArrived(MessageArrivedEvent e) {
              showMessage(e.getArrivedMessage());
         public ConversationWindow(Conversation conversation)
              this.conversation=conversation;
              userName=User.getInstance().getUserName();
              sendFileButton=new JButton("Dosya G�nder");
              sendFileButton.addActionListener(this);
              inviteButton=new JButton("Davet et");
              inviteButton.addActionListener(this);
              incomingArea=new TextArea();
              incomingArea.setEditable(false);
              incomingArea.setFont(new Font("Verdana",Font.PLAIN,12));
              fontMetrics =incomingArea.getFontMetrics(incomingArea.getFont());
              incomingArea.setPreferredSize(new Dimension(300,300));
              outgoingField=new JTextField();
              outgoingField.addKeyListener(this);
              incomingTextScroller=new JScrollPane(incomingArea);          
              JPanel panel=new JPanel();
              panel.setLayout(new BoxLayout(panel,BoxLayout.PAGE_AXIS));
              panel.add(inviteButton);
              panel.add(sendFileButton);
              panel.add(incomingTextScroller);
              panel.add(outgoingField);
              add(panel);
              pack();
              setTitle("Ki&#351;iler:");
              setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
              setLocationRelativeTo(null);
              addWindowListener(new CloseAdapter());
         //Sends the message to other end
         public void keyPressed(KeyEvent e) {
              if(e.getKeyCode()==KeyEvent.VK_ENTER && e.getSource()==outgoingField)
                   String message=outgoingField.getText();
                   if(message.equals("")) return;
                   showMessage(userName+": "+message);
                   conversation.sendMessages(userName+": "+message);
                   outgoingField.setText("");     
         //Displays the recieved message
         public void showMessage(String message)
              if(fontMetrics.stringWidth(message)>incomingArea.getWidth())
                   int mid=message.length()/2;
                   StringBuilder sbld=new StringBuilder(message);
                   for(;mid<message.length();mid++)
                        if(message.charAt(mid)==' ')
                             sbld.setCharAt(mid, '\n');
                             message=sbld.toString();
                             break;
              incomingArea.append("\n"+message);
    }

  • How Can I Set a Default Placeholder Text Language?

    How can I set a default placeholder text language instead of having to set the language every time I use placeholder text?

    Steve Werner wrote:
    I think the default placeholder text language is the language of your version of InDesign.
    The placeholder text is based on the current language setting. So if the language under the cursor is Hebrew, you'll get Hebrew.

  • How can I set a default for webpages to expand to full screen?

    How can I set a default for webpages to expand to full screen? Every webpage I go to does not expand to a full screen which causes me to have to ctrl+++ each time. How can I set my preference to expand to full screen automatically?
    Thanks.

    The Firefox [https://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] feature does a domain by domain level of saving the users preferred zoom level settings, there is no default Page Zoom level setting in Firefox, as with some other browsers.
    Try the Default FullZoom Level extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/6965
    Or the NoSquint extension: <br />
    https://addons.mozilla.org/en-US/firefox/addon/2592/

  • How can I set a DEFAULT zoom size at ctrl+++ that will hold while changing sites--even in private browsing?

    How can I set a DEFAULT zoom size at ctrl+++ that will hold while changing sites--even in Private Browsing?
    I'm just starting using Firefox but I won't be using it for long if I have to re-size the screen with every new location viewed.

    Try this add-on
    [https://addons.mozilla.org/en-US/firefox/addon/6965/ Default FullZoom Level ]

  • How can I set a default window in MAIL (10.6.8) so that it's 27" wide?

    I don't recall this problem pre-OSX. Opening MAIL (in Snow Leopard) results in a window that completely fills my iMac's 27" monitor, almost 100% of the time – even though when exiting MAIL I have all windows to a manageable size.
    How can I limit MIAL to a default window sufficient to contain a "normal" e-message?

    Shrink the window to the size you want, quit mail (may not even have to do that), and then the window will be that size until you change it.  Similarly for new message windows.  Mail remembers (or should remember) the size you set its various windows to.
    Update:
    Hmm, you say you did that.  So what happens if you try this from another account?  Also, FWIW, the mail preferences are kept in com.apple.mail.plist.  If you are willing to potentially loose your mail settings and recreate them then you could try removing that and starting over.

Maybe you are looking for

  • Defective phone return mistake

    I recieved a new phone in the mail via verizon to replace a defective phone.  I made a mistake and thought that I had 5 days to send the defective phone back after activation.  Well after struggling with activiation and backup assistance I realize it

  • GR55 Description issue

    Hello Gurus, I am trying to execute GR55 with a group of profit centers. In report output some times i am not getting description of profitcenter and with same user id and password and on same machine i am getting with proper description. This issue

  • Foxit reader with wine: full search don't react to mouse

    Hello, I want use full search feature in Foxit reader with wine.(to search for text in pdf's in specific directory). It does find text occurrences, *but* full search tab does not responds to mouse, and i can't select results. (actually, i need to tab

  • How do I know if my old iPad has a passcode?

    Dug out my old iPad which was barely touched, so here's a dumb question. I don't need a passcode to use it. Does that mean I never had one?

  • Publishing Web Templates on Portal

    Hi Guys, I have to schedule the precaculated  web templates and  publish them on the portal. So far so good. I am not able to figure out how will I dynamically set the vairbles in order to schedule the Templates daily. E.g. I need to have a Key date