java.io.File instance .list() not working properly

i want to get the file, folders in any directory, so i used the File.list() method.
but it is working in a peculiar manner. first see my simplified code, where the problem i am having::
public class FileChildTest {
     public static void main(String[] args) {
          try{
               String[] s=new java.io.File(args[0]).list();
               for (int i = 0; i<s.length; i++){
                    System.out.println (s);
          catch(java.lang.Exception ex){
now, say i saved it in c:\MyJava directory. now when i run it with cmd line argument c: in stead of listing the file/folders in c: drive it lists the file/folders of c:\MyJava directory. in any other case its working fine.
now if i save the file in d:\MyJava\src. again it gives same problem when CLA is d: , but working fine for any other arg.
now xplain me why is this happening. do i have any fault or what?
and whats the solution.
can ne1 pls.

to b more scecific, in the 2nd case it lists the files/folders of d:\MyJava\src folder.

Similar Messages

  • Contact List not working properly

    Today, my iPad 2 contact list stopped working properly. It opens but does not remain open. It stays open for one or two seconds and then closes. No opportunity to add/delete contacts. Anyone seen this before? I've never had a problem. Any hints or tips are appreciated. Thanks.

    You did restore your iPad from that backup that was taken just prior to upgrading to iOS 5, right?
    All apps and settings are included inthe backup.

  • Auto-Submit On Change in DropDown List not working properly!

    Hi all,
    I�ve got a problem with a drop down list an a table with some rows on my page. The property "Auto-Submit on Change" is set for the drop down because the valueChange-method has to do some work when the user selects another value from the drop down.
    The problem is that after selecting another item from the drop down, the table fields don�t keep their values, which I had entered before I selected another item in the drop down. But: When I select an item again, suddenly exactly these values are set.
    Here my code:
    <?xml version="1.0" encoding="UTF-8"?>
    <jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
    <ui:page binding="#{Page1.page1}" id="page1">
    <ui:html binding="#{Page1.html1}" id="html1">
    <ui:head binding="#{Page1.head1}" id="head1">
    <ui:link binding="#{Page1.link1}" id="link1" url="/resources/stylesheet.css"/>
    </ui:head>
    <ui:body binding="#{Page1.body1}" id="body1" style="-rave-layout: grid">
    <ui:form binding="#{Page1.form1}" id="form1">
    <ui:table binding="#{Page1.table1}" id="table1" style="height: 488px; left: 24px; top: 120px; position: absolute; width: 1376px"
    title="Table" width="1376">
    <ui:tableRowGroup binding="#{Page1.tableRowGroup1}" id="tableRowGroup1" rows="10" sourceData="#{SessionBean1.columnProvider}" sourceVar="currentRow">
    <ui:tableColumn binding="#{Page1.tableColumn1}" headerText="field1" id="tableColumn1" sort="field1">
    <ui:textField binding="#{Page1.textField1}" id="textField1" text="#{currentRow.value['field1']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn2}" headerText="field2" id="tableColumn2" sort="field2">
    <ui:textField binding="#{Page1.textField2}" id="textField2" text="#{currentRow.value['field2']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn3}" headerText="field3" id="tableColumn3" sort="field3">
    <ui:textField binding="#{Page1.textField3}" id="textField3" text="#{currentRow.value['field3']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn4}" headerText="field4" id="tableColumn4" sort="field4">
    <ui:textField binding="#{Page1.textField4}" id="textField4" text="#{currentRow.value['field4']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn5}" headerText="field5" id="tableColumn5" sort="field5">
    <ui:textField binding="#{Page1.textField5}" id="textField5" text="#{currentRow.value['field5']}"/>
    </ui:tableColumn>
    <ui:tableColumn binding="#{Page1.tableColumn6}" headerText="field6" id="tableColumn6" sort="field6">
    <ui:textField binding="#{Page1.textField6}" id="textField6" text="#{currentRow.value['field6']}"/>
    </ui:tableColumn>
    </ui:tableRowGroup>
    </ui:table>
    <ui:dropDown binding="#{Page1.dropDown1}" id="dropDown1" items="#{Page1.dropDown1DefaultOptions.options}"
    onChange="common_timeoutSubmitForm(this.form, 'dropDown1');"
    style="position: absolute; left: 48px; top: 24px; width: 240px; height: 24px" valueChangeListener="#{Page1.dropDown1_processValueChange}"/>
    </ui:form>
    </ui:body>
    </ui:html>
    </ui:page>
    </f:view>
    </jsp:root>
    and the code of the valueChange-Method:
    public void dropDown1_processValueChange(ValueChangeEvent event) {
    getSessionBean1().getColumnProvider().commitChanges();
    List positions = getSessionBean1().getColumnProvider().getColumnList();
    Is there some explanation for this behavior or it�s really a bug in the way how the drop down is submitting the form? I would understand it when commitChanges is not working here because of auto submit on change (==immediate?). but once it works und once it doesn�t work!

    Hi There,
    Not sure what you mean. Have you tried Netbeans 6 yet. Do you see same behaviour in it as well?
    This might be of help to you
    http://www.netbeans.org/kb/55/dropdowncomp.html
    Thanks
    K

  • Java.io.File renameTo does not work on Solaris

    Hi Experts,
    I have a code-piece which tries to move files from one directory to another on the SAME FILE SYSTEM using java.io.File.renameTo method.
    It works fine when there less no. of files in the source directory. But the renameTo does not work as expected when there are very huge no. of files(~40K) present in the source directory.
    I am aware that there is a known issue when one tries to use this method to move files across file systems OR if the file exists at the destination directory.
    But in my case the file system is the same and the there is no such file in the destination directory.
    I suspect some inode related issues. But not sure what it is exactly.
    Is there any limitations of renameTo?
    Please help.

    OK, we all now understand you have a problem in doing this, but without the specifics of the problem that you are experiencing, then it is fairly difficult to give you anything other than a guess. If you would like some specific and relevent answers, please supply specifics about how exactly the operation differs from your expected results. You should also post example code as it is almost always asked for eventually.

  • Binding gateway service with List not working properly with expand

    Hi all,
    We have an orderlist with details, we use the splitapp for it, it's working nicely with a gatewayservice. We have now added with expand 2 orderpartners. I see the 2 partners, only is it completly the same data. I checked the oData structure and I see indeed that the 2 partners are the same. This is weird, because when I execute the service, via my browser, I see 2 different partners.
    If I execute the service directly via the read function, I see in the oData that I also have 2 different partners. So my conclusion is that the direct read of the service is working and executing the service via the sap.m.List is not working with the expand.
    Now my question is, does somebody know what's going wrong here, or is it a bug in the sap.m.List? Below you find code snippets how I call the service.
    This call is working:
    oModel.read("/OrderListSet", null, ["$orderby=BegTstmp asc&$filter=Userid eq 'user' and DateFrom eq datetime'2014-04-20T00:00:00' and DateTo eq datetime'2014-04-27T00:00:00'&$expand=OrderPartners"], null, function(oData, oResponse){  
      }, null );
    The binding via the sap.m.list is:
    var oList = new sap.m.List("orderList", {
      mode: "{device>/listMode}",
                items: {
            path: "/OrderListSet",
               parameters: {expand: "OrderPartners"},
            template : new sap.m.StandardListItem({
            title: {
                   parts: [
                           {path: "BegTstmp", type: new sap.ui.model.type.DateTime({pattern: "H:mm"})},
                           {path: "DataCol2"}
                   formatter : function(strDate, strDescription) { return strDate + " - " + strDescription; }
            description: {
            parts: [
                          "DataCol3",
                          "DataCol4",
                          "DataCol5",
                          "DataCol6"
            type: sap.m.ListType.Navigation,
            icon: "{icon}",
            customData: [
            new sap.ui.core.CustomData({
            key: "orderId",
            value: "{Orderid}"
            new sap.ui.core.CustomData({
            key: "type",
            value: "{Type}"
            // Sort the list on date and group the list on day
                   sorter: new sap.ui.model.Sorter("BegTstmp", false, oGrouper),
                   // Filter the list, this directly refrenced to the gatewayservice
            filters: [
                     util.Filter.getUserId(),
                     util.Filter.getCurrentWeekFromFilter(),
                     util.Filter.getCurrentWeekToFilter(),

    Fine. If you're trying to bind any attributes of OrderPartners, bind it as OrderPartners/attribute-name. Say if "BegTstmp" an attribute of OrderPartners bind it as OrderPartners/BegTstmp.
    Regards
    Sakthivel

  • Instance of not working properly??

    Hi. This might be hard to explain but I really dont understand why this is happening..... I have a superclass called Student, and subclasses call PostGraduate and UnderGraduate. When I create a student, depending on whether they entered PostGraduate or UnderGraduate during data input, a new instance of one of these two will be created as seen in the following code:
    if(graduate=='P')
    studentList.add(new PostGraduate(name.toUpperCase(), address.toUpperCase(), phone, gender, code.toUpperCase(), false));
    if(graduate=='U')
    studentList.add(new UnderGraduate(name.toUpperCase(), address.toUpperCase(), phone, gender, code.toUpperCase(), false));
    }I am positive this is working because I put a System.out in each if statement and it would create them as either UnderGraduate or PostGraduate depending on what I chose, and their corresponding toString methods are being called correctly.
    The problem I am now having is this: I have two methods, one called displayAllPostGrad() and one called displayAllUnderGrad();
    In these methods I have the following code:
    for(int i=0;i<studentList.size();i++)
    if(studentList.get(i) instanceof PostGraduate);
    System.out.println(" - " + studentList.get(i).getCode() + " " + studentList.get(i).getName());
    foundStudent=true;
    }Except obviously the other method has "instance of UnderGraduate".
    When I run these methods, say for example I run the method displayAllPostGrad, it is displaying all my students, that is, even students that are an instance of UnderGrad. The same happens when I run the method for displayAllUnderGrad, it displays students that are PostGrads as well.
    I cannot see anywhere in my code why this is happening.. any help would be great.
    Many thanks

    By the way, relying on instanceof is kind of poor. Sometimes it's unavoidable, but if you can redesign your program so that it doesn't have to do this, it would be good.
    You could add the Student objects to two different lists (it's still the same object, just used twice, so there's little waste of resources), one list represents all students, and one list represents just postgraduates or just undergraduates.
    You could also perhaps have a method in Student which basically says "add yourself to the appropriate list", and when you want to display student lists, call that method on all students.

  • Logical file path is not working properly with different DTP's

    Hi all,
    I have a open hub, that push data in to application server(AL11) with file name /tmp/.
    I have two DTP's, one for company code. P001 and other for U001.
    i want to display dynamic file names as P001 when DTP for P001 is executed and U001 when  DTP for U001 is executed
    file names as follows  /tmp/P00120110412openhub.csv  and /tmp/U00120110412openhub.csv.
    for this i have writen code in function module Y_FILENAME_EXIT_name. and it is working fine.
    my problem is I can run only one DTP and only one time, for this it is creating the file.  when i am executing the same DTP or other DTP, the DTP is running without errors and  it is not creating the file in AL11.  if I activate the open hub and execute the DTP then it is creating the file.
    every time i have activate the open hub and then i am running the DTP's. please suggest me to avoid this.
    Thanks in advance.
    Regards,
    Latheep.

    But I don't know what log file is missing, this SQL show me sequence# 0
    SQL> SELECT SPID,TYPE,STATUS FROM V$LOGSTDBY_PROCESS;
    SPID                     TYPE                           STATUS
    19277                    COORDINATOR                    ORA-16240: Waiting for log file (thread# 1, sequence# 0)
    How can I discover what log file is missing? Thanks.

  • Detailed File Share Auditing not working properly (Applying to All Files)

    System is Windows 2008 R2, member server. The Default Domain policy has Audit account logon events, Audit account management, & Audit privilege use turned on for Success, Failure...pretty standard. I want to enable Detailed File Share Auditing for a
    specific file share on this member server.
    The problem is that I am getting audit events in the Security log for folders that do not have Auditing set on them, namely a "My Documents" share for Folder Redirection and \\*\IPC$ The root of the drive has nothing set for auditing. Again I only
    set it on a single folder and sub-folders under that. What am I missing here?
    I run the command on the member server to set this up (auditpol /set /subcategory:"Detailed File Share" /success:enable /failure:enable) That works fine.
    Result of auditpol /get /category:"Object Access" :
    System audit policy
    Category/Subcategory                      Setting
    Object Access
      File System                             No Auditing
      Registry                                No Auditing
      Kernel Object                           No Auditing
      SAM                                     No Auditing
      Certification Services                  No Auditing
      Application Generated                   No Auditing
      Handle Manipulation                     No Auditing
      File Share                              No Auditing
      Filtering Platform Packet Drop          No Auditing
      Filtering Platform Connection           No Auditing
      Other Object Access Events              No Auditing
      Detailed File Share                     Success and Failure
    Now I went to the file share to set the audit permissions. Security>>Advanced>>Auditing>>Continue. Set Everyone Full Control for Success and Failure (all boxes checked).
    I am using NTFS permissions for security, the share level permission on the folder are Everyone Full.
    Michael Maxwell

    I think found the reason. Could someone please clarify this statement for me?
    Since there are no SACLs for shares, once this setting is enabled, access to all shares on the system will be audited.
    So what is the workaround for this? Is there one? I'm confused as usual.
    Michael Maxwell

  • File Save As not working properly in Photoshop after upgrading to Lion

    I have recently upgraded to Lion and I am finding that I cannot browse the disk when using file save as in Photoshop. I click on the icons to expand the folders but nothing happens. Does anybody know a solution to this problem?

    Hi,
    I'm marking the reply as answer as there has been no update for a couple of days.
    If you come back to find it doesn't work for you, please reply to us and unmark the answer.
    Regards,
    Melon Chen
    Forum Support
    Come back and mark the replies as answers if they help and unmark them if they provide no help.
    If you have any feedback on our support, please click
    here

  • Master License File update - apps not working properly

    All:
    Believe it or not, I am replacing an expired license with the master license file on a 9.2 installation. Go figure...
    Anyway, I have searched for docs on what needs to be reconfigured and how after replacing the old file and have come up empty. Have run config tool to update Deployment id for both Essbase and Planning but still getting error message in Planning indicating an issue with the license and when opening HBR rules, that it cannot connect to Essbase due to licensing issue. Tried re-registering with Shared Services for both Planning and Essbase, still getting the same errors and log files are not providing much by way of clues.
    Other info: License server logs shows no errors. All apps starting successfully.
    Does anyone have a doc or experience with this that they can share with me? Do I need to deregister apps? Redeploy the app servers?
    K

    There are no virus for an iphone unless it is jailbroken.
    For the message  - close out of the app, then double tap the home button and completely close out of the app.
    Then do a reset, no data loss.  Hold down the home/sleep button together until you see the apple logo and then release, then wait for the phone to boot back up.
    this reset, might help with your other issues too.

  • Finder : Moving a file across tabs not working properly

    In finder, while moving a file from one tab (source) to the next tab (target), the target tab is not shown/displayed, rather a blue color highlight alone seen on the target tab title. This makes me not able to browse through folders of the next tab to put the file into appropriate folder on the target tab.
    Workaround : I should always keep the target folder opened in the next folder, and then from source folder, drag and move the file and leave it on the title of the target tab, which makes sucessful move/copy.
    I've OS X 10.9, on my macbook pro 15", intel core 2 duo, with japanese keyboard (since bought in japan), but with English language access.

    I see from your OP that several people have the same question, but I'm not seeing this behavior.
    When I want to move one item in one tab to a new location in another tab, I hold the item over the second tab's title (which then highlights in blue), and continuing to hold on to the item I'm moving, I am able to drag the item anywhere I want in the new tab.
    Further, continuing to hold on to the item I'm moving, I'm able to hold it over any folder in the second tab, and that folder will open and allow me to drop the item in. I can even hold the item I'm moving over folders in the Finder Sidebar and those folders will open, allowing me to navigate in and out of any of them. And, if I get lost and can't find the folder I want to drop the item in, I can drop the item onto the Finder Toolbar and the item will be replaced in its original location.

  • Ive just upgraded my late 2009 macbook, and things are not working properly. First of all, when I started the computer first time after installing Mountain Lion, some message advised me that some files were impossible to install.

    Ive just upgraded my late 2009 macbook, and things are not working properly. First of all, when I started the computer first time after installing Mountain Lion, some message advised me that some files were impossible to install. Once I wrote my password, and for now on, everytime I start the session, another window advise me that "Java SE 6" is missing, due that, the computer can't run some "CS5Service Manager". If I try to install it, the download ends with an error. If finally, you skip the istallation, you arrive to the dock, but the menu bar at the top of the screen doesn't show up.
    In addition, my trackpad doesn't works either. I can move the arrow but i can't click anywhere, probably because the option of clicking by touching is disabeled and I can't performance a regular click.
    I'll be very glad if someone know what the heck is happening with my computer. Anyway, I'm going to the genius bar next Saturday. Thx!

    We're sorry.
    We can't find the article you're looking for.
    Please return to the Apple Support homepage.
    Sigh.

  • Pick List Value Not Working Properly

    Hi Oracle Framework Gurus,
    I have a strange Issue in which one of my cusom page is working properly in Jdev and not working Properly when deployed in the apps instance.
    There are two custom pages with the same VO.
    What I do is have a picklist from one of the custom page and depending on the value of the picklist and I navigate to the other custom page.
    This is working properly in the JDev,But for some reasons it works properly in apps instance, when I try to run the first time(ie) when I run page A and pick 'X' from the picklist the Page 'B' is coming properly as per the controller code and when i pick 'Y' from the picklist in Page B, it is navigating to Page A as per the controller code.
    This works fine for the first time,But when i again select 'X' from the picklist the proper value from the Picklist is not getting selected and passed to the custom package and so I get wrong values in Page 'B'
    What could be the reason for it as it working fine in Jdev,I can navigate from Page A to Page B and Page B to Page A as many times possible.

    Hi Anand,
    Controller1 :
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // Date testdate = (Date)sysdate.dateValue();
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag1") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag1");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession1");
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmployeePanelIB",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    System.out.println("strPersonId "+strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    //Serializable parameters[] = { strPersonId,sDate };
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The PersonId "+strPersonId);
    System.out.println("The Controller Date passed is IBUtil "+sDate);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "1";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag", flag);
    pageContext.putSessionValue("SDateSession", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpTestPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Controller 2:
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    //int intPersonId = pageContext.getEmployeeId();
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    //String strPersonId = Integer.toString(intPersonId);
    java.util.Date sysdate = pageContext.getCurrentUserDate();
    String convSysDate = pageContext.getOANLSServices().dateToString(sysdate);
    // get the Application Module
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    Serializable parameters[] = { strPersonId,convSysDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Sysdate PF "+convSysDate);
    //pass parameters to Application Module
    oaAM.invokeMethod("insertLovRow", param);
    if ((String)pageContext.getSessionValue("PFlag") != null)
    String PFlag1 =(String)pageContext.getSessionValue("PFlag");
    String SDate1 =(String)pageContext.getSessionValue("SDateSession");
    Serializable param2[] = { strPersonId, SDate1 };
    Serializable param1[] = { SDate1 };
    oaAM.invokeMethod("insertLovRow", param);
    oaAM.invokeMethod("initEmpLovQuery1",param1);
    oaAM.invokeMethod("initEmpTransLovQuery1");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmpTransDateLov");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    else
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    oaAM.invokeMethod("totexecQuery");
    OAMessageChoiceBean orgMesgChoiceBean = (OAMessageChoiceBean)webBean.findChildRecursive("Year");
    orgMesgChoiceBean.setPickListViewObjectDefinitionName("EmployeeTest.oracle.apps.per.server.EmployeeDateLovVO");
    orgMesgChoiceBean.setListValueAttribute("StartDate");
    orgMesgChoiceBean.setListDisplayAttribute("DateRange" );
    orgMesgChoiceBean.setPickListCacheEnabled(false);
    oaAM.invokeMethod("initEmpLovQuery");
    OAViewObject oaviewobject1 =(OAViewObject)oaAM.findViewObject("EmployeeUtilVO1");
    oaviewobject1.reset();
    if (oaviewobject1 != null)
    do
    if(!oaviewobject1.hasNext())
    break;
    oaviewobject1.next();
    OARow row = (OARow)oaviewobject1.getCurrentRow();
    String fullName = (String)row.getAttribute("EmpDep");
    System.out.println("The Name is "+fullName);
    } while(true);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    OAApplicationModule oaAM = pageContext.getApplicationModule(webBean);
    //int intPersonId = pageContext.getEmployeeId();
    //String strPersonId = Integer.toString(intPersonId);
    int intPersonId; // = pageContext.getEmployeeId();
    String strPersonId = Integer.toString(277671);
    if (pageContext.getParameter("ViewDetails") != null)
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpPanelPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    pageContext.putSessionValue("strPersonId", strPersonId);
    String strEvent= pageContext.getParameter(EVENT_PARAM) ;
    if ( strEvent.equals("update"))
    OAMessageChoiceBean DepStatus1 = (OAMessageChoiceBean) webBean.findIndexedChildRecursive("Year");
    String sDate = DepStatus1.getSelectionValue(pageContext);
    //String sDate = DepStatus1.getValue(pageContext).toString();
    Serializable parameters[] = { strPersonId,sDate };
    Serializable param[] = { strPersonId };
    System.out.println("The Controller Date passed is CBUtil "+sDate);
    System.out.println("The PersonId "+strPersonId);
    oaAM.invokeMethod("insertRow", parameters);
    oaAM.invokeMethod("initQuery", param);
    oaAM.invokeMethod("execQuery");
    String flag = "2";
    //pageContext.putSessionValue("strPersonId", strPersonId);
    pageContext.putSessionValue("PFlag1", flag);
    pageContext.putSessionValue("SDateSession1", sDate);
    pageContext.setForwardURL("OA.jsp?page=/EmployeeTest/oracle/apps/per/webui/EmpIBUtilPG",
    null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null,
    null,
    true, // Retain AM
    OAWebBeanConstants.ADD_BREAD_CRUMB_YES, // Show breadcrumbs
    OAWebBeanConstants.IGNORE_MESSAGES);
    Hi Above two are the controller codes forget the rest of the codes,Concentrate on the PFR code, Just want to know what I am doing is correct or not.
    First time when I select the Picklist value,the value gets passed as a parameter to the custom package and the page gets displayed properly and vice versa,But I am not able to do the same cycle again for some reasons.
    Please get back to me ASAP.
    Regards,
    Magesh.M.K.
    Edited by: user1393742 on Oct 19, 2010 11:58 PM

  • Java Script Code not working properly for visios in sharepoint 2013

    Hi all ,
                 I have few visios and I am using the visio web part to display and to redirect from one visio to other visio I am using the java script code through content editor web part . 
    In share point 2010 it's working fine , I was able to redirect to all the visios and code is working fine .
    In share point 2013 its not the same , Its not working properly . only for the first time the code is working fine . once it goes to next visio the code stops working . 
    For example if i click in visio A it gets redirect to Visio B and its stops working , it wont allow to do any other steps . 
    I have checked with the URL its correct , I am not able to find any error also .
    Indresh

    This will be likely caused by the Minimal Download Strategy not registering the Javascript on the page reload. You can turn off the MDS feature to test this.
    You can either turn off MDS in your site, or register your Javascript functions with MDS to ensure they are called. To do this, you'll need all of your code to be wrapped in a javascript file (Embed this on the page using a <script> tag and
    inside that file in a function, which you then register with MDS as follows (I usually do this in the first line of the javascript file):-
    RegisterModuleInit("/SiteAssets/YourJavaScriptFile.js", NameOfYourFunction);
    Regards
    Paul.
    Please ensure that you mark a question as Answered once you receive a satisfactory response. This helps people in future when searching and helps prevent the same questions being asked multiple times.

  • List of Character which cause Query not work properly

    I want the List of characters and resolution which can leads the SQL query to not work properly
    LIKE
    Problem: Single Quotes " ' " in SQL query.
    Solution: Use one more single Quotes
    Example: Select 'D''Sa'as EName from dual;
    Please provide all Such special cases so I take care while developing my application.

    That's what I ment by 'copied to every other iBook I have to create in this series' ( I mean 'linked in ePub export pop up').
    I use a small CSS file containing what I need and have no surprises anymore. I learned a lot this weeks...
    And concerning InDesign (as I always say in the IT-world): For every solution there is a problem...
    Cees
    information designer

Maybe you are looking for

  • ABAP Program to Read Transports and Get Descriptions

    Hello, Does anyone out there have an abap program or know of one that will read transports with the technical names and give you the description of the objects, in order to make it easier to verify things in a transport?

  • I need the startup discs for a G5, where do I get them?

    We purchased an older G5 and do not have the discs that came with it. My MacBook Pro is to advanced. Help. We can only use it in Safe Mode right now....

  • Extraneous lines in printing a map

    On some of our computers, when we send a map to the plotter from Acrobat, we get extraneous long lines across the page. These are always a line symbol that is really on the map, but shoots off straight from a vertex somewhere. These lines do not show

  • PDF in browser...

    Many people cannot figure out either how or that it is possible to zoom in and out of PDFs that are uploaded to the web. And now, the default Reader does not present a magnifying glass icon, which makes matters worse. What can we do to help the unsav

  • Data plans question

    I am a little unclear how the data plans work with AT&T. I rarely have a need for a data plan, not even once a month, but I would like to have it available for when I do need it as inexpensive as possible. So here are a couple questions I have. If I