[Solved] ADF - Update does not return values generated by a trigger

Hello,
I'm using JDev 10.1.3.3.0 and DB 10.2.0.3.0.
On DB I've created a table, a sequence and a trigger:
CREATE TABLE TAB1
     ID          NUMBER          PRIMARY KEY,
     EDITED_AT     DATE,
     VALUE          VARCHAR2(64)
CREATE SEQUENCE S_TAB1
     INCREMENT BY 1
     START WITH 1;
CREATE TRIGGER T_TAB1_BIE
BEFORE INSERT OR UPDATE ON TAB1
FOR EACH ROW
BEGIN
     IF INSERTING THEN
          SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
     END IF;
     :NEW.EDITED_AT := SYSDATE;
END;
/In JDev I've created an EO - Tab1, a VO - Tab1View and an AppModule.
In the EO Tab1 I have checked "Refresh After Insert" and "Refresh After Update" for Id and Edited_By attributes. I made the latter two attribures as "Never" updatable.
Then I test the AppModule with a JDev Tester (I use a connection which connects as an owner of the 3 objects above).
Then I insert a new row and enter a value into the Value field in the Tester. When I press Commit button everything works great - Id and Edited_By attributes get populated with values generated by the trigger.
But when I try to update the Value field and press Commit the Edited_By field does not retreives new value that was generated by the trigger.
Why does this happens?
Many thanks in advance.
Yerzhan.

Frank,
I tried to set Refresh option on both, Value and Edited_At, fields but unsuccessfully.
Then I tried to do the following in SQL Plus:
SQL> insert into tab1(value) values('ddd');
1 row created.
SQL> commit;
Commit complete.
SQL>
SQL> select * from tab1;
        ID EDITED_AT           VALUE
         1 27.03.2008 17:01:24 ddd
SQL>
SQL> declare dt date; val varchar2(64);
  2  begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
  3  dbms_output.put_line('txt = ' || dt || ', ' || val);
  4  end;
  5  /
txt = 27.03.2008 17:01:24, ddd
PL/SQL procedure successfully completed.
SQL>
SQL> select * from tab1;
        ID EDITED_AT           VALUE
         1 27.03.2008 17:02:12 ddd
SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24.
Frank, maybe the issue is in the Oracle DB?

Similar Messages

  • WB_RT_GET_JOB_METRICS does not return values

    DB v 10.2.0.2
    OWB repository/client v 10.2.0.3
    A DB function has a call to the Control Center transformation WB_RT_GET_JOB_METRICS to extract and preserve the metadata of number of records inserted/updated/deleted in a DB table.
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    1.
    The control center transformation WB_RT_GET_JOB_METRICS does not return any values when used under the Post-Mapping Process(mapped to the DB function describe above) in a Map.
    The input parameter ;Audit Id' to the Map is passed from a calling Process Flow. The following query is used to retrieve the Audit Id of the Map.,
    SELECT execution_audit_id
    INTO l_audit_id
    FROM ALL_RT_AUDIT_EXECUTIONS
    WHERE parent_execution_audit_id = P_AUDIT_ID;
    And the retrieve l_audit_id is passed to the WB_RT_GET_JOB_METRICS transformation to extract the number of records inserted/deleted/updated with the execution of the map.
    Gurus, please advice if the approach is appropriate to retrieve the number of records inserted/deleted/updated by the execution of the map. If not, any alternate method.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    2. The control center transformation WB_RT_GET_JOB_METRICS returns values when used in a standalone pl/sql block with the appropriate audit_id.
    Is this because the metadata for the Map execution is complete, whereas in the earlier attempt, the transformation is called within the map using the Post-Mapping process.
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    3. Since the option 1 did not return any value, tried other option of calling/executing a transformation(call the the DB function mentioned earlier) after the Map activity is successful in a ProcessFlow. Here, the transformation does not seem to be executing, any tips of correcting this issue.
    Request the forum for some helpful tips to resolve the problem. TiA (Thanks in Advance) for the response.
    Message was edited by:
    user599655

    In a process flow, passed the pseudo variable to a transformation to run the WB_RT_GET_JOB_METRICS after the map execution. I am not sure if this is the best solution, but it worked for me.
    Still trying to figure how to use the pre-defined transformation when working on expression.
    Thanks.

  • LOV does not return value to the base page sometimes

    Hi,
    I have created messageLOV type items. These LOVs do return value to the base page usually. We have a user in Uruguay who is trying to use the page which has the LOVs. He says the LOV takes a long time to return to the main page after he clicks on quick select and also the value does not get populated in the main page.
    We have not been facing any such problem here in India. The LOV has been tested rigorously with no issues as such.
    Can you please suggest a reason why such a problem is occuring? Expecting your replies soon
    Thanks,
    Priya

    Thiyaga, did you read the devguide or the tutorial ?
    Can you please give me the inputs about the creation of LOV and it requires how many lov mappings as mandatory?
    This is there in the devguideHow to identify the mapping fields of an LOV which is already existing in the base page to reproduce in a similar way and need to do a customization on top of it ?
    Open the page XML and you can find the LOV mappings.Tapash

  • R12: Supplier Banking Details - LOV does not return value

    Hi!
    I am having a problem when selecting a Bank for a supplier.
    I click on the icon to open the LOV and search for the bank i want to add for a particular supplier.
    When i click on the select button, the value of the bank name does not appear in the text box.
    In another environment it works perfectly.
    Please help..
    Vik

    Hi Vik,
    In R12, while defining the bank and bank accounts, there is a section called ACCOUNT OWNER and USE, where we specify that this bank can be used for which application for e.g. Payables, Payroll, Recievables and Treasury,
    Can you please check that the above bank account is enabled for use by Payables application.
    I am thinking that might be one of the cause , why the bank name is not available at the supplier level..
    Thanks
    Manish Jain.

  • Command_link generated by JSTL does not return value attribute

    Since data_table CANNOT RENDER DATA IN SINGLE ROW, MULTIPLE COLUMNS, I am using the following to show the data as links in single row, multiple columns
    <TABLE><TR><TD>
    <c:forEach var="item" items="${MyBean.Filters}">
    <c:set var="myLink" value="${item}" scope="request"/>
    <h:command_link value="#{myLink}" actionListener="#{MyBean.LinkSelected}">
    <h:output_text value="#{myLink}"/>
    </h:command_link>
    </c:forEach>
    </TD></TR></TABLE>
    The above JSTL shows up the links fine in a single row. But when a link is selected and the actionlistener is called, I see that the value parameter is null. Is this because the command_link is in a TABLE (i think I read somewhere that this is a known bug... )
    I do
    value = (String)((UICommand) event.getSource()).getValue();
    to get the value...
    I tried several ways.. all I need is a way to distinguish the links and know which link has been selected.
    Any suggestions please....

    The value is null when the ActionEvent listener fires, because the myLink variable is only available during processing of the JSP page as part of the Render Response phase, not in the request triggered by clicking on the generated link.
    There's simply no way to get this to work using JSTL's <c:forEach> action, and it's not because we didn't try. A custom renderer for the UIData component that renders a single component as a table with one row with multiple columns (or whatever you need) is the only solution I can think of.
    Hans Bergsten (EG member)

  • [SOLVED] Gnome-Shell does not return any application on search

    Hi.
    When I search for applications in Activities in gnome-shell, no applications are returned. I can still go to the Applications tab, where all applications are visible. In the .xsession-error log I find this error
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    JS LOG: Error searching with Zeitgeist FTS: Error: DBus error: org.freedesktop.DBus.Error.UnknownMethod: Method "Search" with signature "s(xx)a(asaasay)uuu" on interface "org.gnome.zeitgeist.Index" doesn't exist
    Some package information:
    gnome-shell 3.2.0-2
    gnome-shell-extension-alternate-tab 3.2.0-1
    gnome-shell-extension-auto-move-windows 3.2.0-1
    gnome-shell-extension-move-clock 1.0-1
    gnome-shell-extension-pidgin-status 3.2.0-2
    gnome-shell-extension-power-options 2.0-1
    gnome-shell-extensions-common 3.2.0-1
    gnome-shell-extension-skype-status 3.0.2-1
    gnome-shell-extension-system-monitor 3.2.0-1
    gnome-shell-extension-user-theme 3.2.0-1
    gnome-shell-extension-workspace-indicator 3.2.0-1
    gnome-shell-zeitgeist-extension-git 20111010-1
    libqzeitgeist 0.7.0-1
    libzeitgeist 0.3.10-1
    zeitgeist 0.8.1.1-1
    zeitgeist-datahub 0.7.0-1
    zeitgeist-datasources 0.8.0.1-1
    zeitgeist-extensions 0.0.12-1
    zeitgeist-userspace 0.1-1
    Remark: Before, installing zeitgeist, when searching for applications gnome-shell crashed and in the .xsession-errors I got this error
    gnome-shell-calendar-server[1508]: Got HUP on stdin - exiting
    . This may not be related to this problem.
    Last edited by lasombra (2012-04-06 11:13:43)

    Well only to see if it is related to zeitgeist, I've removed (deinstalled) all zeitgeist related libs and apps:
    libzeitgeist
    gnome-shell-extension-zeitgeist
    libqzeitgeist
    zeitgeist
    gnome-activity-journal
    zeitgeist-datahub
    zeitgeist-extensions
    I still get the same error mentioned above:
    gnome-shell-calendar-server[1508]: Got HUP on stdin - exiting
    More details what happens if all extensions disabled
    ** Message: applet now embedded in the notification area
    Window manager warning: CurrentTime used to choose focus window; focus window may not be correct.
    Window manager warning: Got a request to focus the no_focus_window with a timestamp of 0. This shouldn't happen!
    ** Message: applet now removed from the notification area
    gnome-session[3155]: WARNING: Application 'gnome-shell.desktop' killed by signal
    gnome-shell-calendar-server[3381]: Got HUP on stdin - exiting
    Last edited by lasombra (2011-11-05 20:09:19)

  • UDF does not return value even though its underlying query does.

    I have a User Defined Function which is supposed to return a scalar varchar(50) value.  This is what I did:
    ALTER FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
    @NIIN varchar(5),
    @PN varchar(20)
    RETURNS Varchar(50)
    AS
    BEGIN
    -- Declare the return variable here
    Declare @NSN varchar(50)
    Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
    FROM TechManual.dbo.ANSNS NSN
    JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
    JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
    WHERE NSN.NIIN = @NIIN AND PN.PARTNUMBER = @PN)
    RETURN @NSN
    END
    However I keep getting a Null as the return.  So I ran a test to call the function and run the the underlying query like this:
    Select dbo.zt_prc_fnNSNsFmNIIN_Get('015132378', '850AS911')
    Declare @NSN varchar(50)
    Set @NSN = (SELECT Convert(varchar(20), RTRIM(NSN.FSC)) + Convert(varchar(20), RTrim(NSN.NIIN)) NSN
    FROM TechManual.dbo.ANSNS NSN
    JOIN TechManual.dbo.AITEMTABLE AIT ON NSN.PRIMARYPARTNUMBER = AIT.PRIMARYPARTNUMBER and NSN.DODIC = AIT.DODIC
    JOIN TechManual.dbo.PARTNUMBERS PN ON AIT.PRIMARYPARTNUMBER = PN.PRIMARYPARTNUMBER
    WHERE NSN.NIIN = '015132378' AND PN.PARTNUMBER = '850AS911')
    Select @NSN
    As you can see the Select statement is exactly what is entered in the UDF.  However the call to the UDF yields
    null
    and the call to select the variable populated by the query yields "1377015132378".
    Everyone here has taken a look at the UDF and are unable to see anything which might be an issue.
    Edward R. Joell MCSD MCDBA

    Check:
    CREATE FUNCTION [dbo].[zt_prc_fnNSNsFmNIIN_Get]
    @NIIN varchar(50),
    @PN varchar(50)
    RETURNS Varchar(50)
    AS
    BEGIN
    -- Declare the return variable here
    Declare @NSN varchar(50)
    Set @NSN = (SELECT name FROM Production.Product where ProductNumber=@NIIN and Color = @PN)
    RETURN @NSN
    END
    GO
    -- SELECT * FROM Production.Product;
    SELECT [dbo].[zt_prc_fnNSNsFmNIIN_Get] ('RD-2308', 'Silver');
    -- Rear Derailleur
    Kalman Toth Database & OLAP Architect
    SQL Server 2014 Design & Programming
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • UPDATE ... RETURNING does not return new value

    Hi all,
    I've created the following objects in Oracle DB 10.2.0.3.0:
    CREATE TABLE TAB1
         ID          NUMBER          PRIMARY KEY,
         EDITED_AT     DATE,
         VALUE          VARCHAR2(64)
    CREATE SEQUENCE S_TAB1
         INCREMENT BY 1
         START WITH 1;
    CREATE TRIGGER T_TAB1_BIE
    BEFORE INSERT OR UPDATE ON TAB1
    FOR EACH ROW
    BEGIN
         IF INSERTING THEN
              SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
         END IF;
         :NEW.EDITED_AT := SYSDATE;
    END;
    /Then I tried to do the following in SQL Plus:
    SQL> insert into tab1(value) values('ddd');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:01:24 ddd
    SQL>
    SQL> declare dt date; val varchar2(64);
      2  begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
      3  dbms_output.put_line('txt = ' || dt || ', ' || val);
      4  end;
      5  /
    txt = 27.03.2008 17:01:24, ddd
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:02:12 ddd
    SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24. Please advise me why Database returns an old value? I do believe that UPDATE ... RETURNING ... statement should return new, generated by the trigger, value.
    Thanks in advance.
    Regards,
    Yerzhan.

    you need to explicitly include the column in your UPDATE statement SET clause that you expect to return the result you want it to be. here's what i think what happened even though you have a trigger the first statement that was processed was your update statement. at the time of the update it has to return the current values to the returning clause that is the values on the table. now comes next the trigger which gives edited_at column a new value. when the trigger got fired the process don't return anymore to the UPDATE RETURNING statement. it's like each sequence of codes does not executes in parallel.
      SQL> CREATE TABLE TAB_1
        2  (
        3   ID  NUMBER  PRIMARY KEY,
        4   EDITED_AT DATE,
        5   VALUE  VARCHAR2(64)
        6  );
      Table created.
      SQL> CREATE SEQUENCE S_TAB1
        2   INCREMENT BY 1
        3   START WITH 1;
      Sequence created.
      SQL> CREATE TRIGGER T_TAB1_BIE
        2  BEFORE INSERT OR UPDATE ON TAB_1
        3  FOR EACH ROW
        4  BEGIN
        5   IF INSERTING THEN
        6    SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
        7   END IF;
        8   :NEW.EDITED_AT := SYSDATE;
        9  END;
       10  /
      Trigger created.
      SQL> insert into tab_1(value) values('ddd');
      1 row created.
      SQL> commit;
      SQL> select * from tab_1;
              ID EDITED_AT            VALUE
               1 28-mar-2008 10:31:18 ddd
      SQL> declare dt date; val varchar2(64);
        2  begin update tab_1 set value = 'ddd', edited_at = sysdate
        3        where id = 1 returning edited_at, value into dt, val;
        4  dbms_output.put_line('txt = ' || dt || ', ' || val);
        5  end;
        6  /
      txt = 28-mar-2008 10:32:39, ddd
      PL/SQL procedure successfully completed.
      SQL> select * from tab_1;
              ID EDITED_AT            VALUE
               1 28-mar-2008 10:32:39 ddd
      SQL>

  • LOV does not return the value (2)

    PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
    After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.

    Hi RamKumar,
    Thanks for your reply.. I have already done that but no luck :(
    Regards,
    Hemanth J

  • Function does not return a value

    CREATE OR REPLACE PACKAGE BODY Promo_Version_Logo_Pkg IS
      FUNCTION Promo_Version_Logo_Rule(Rc IN test.Ot_Rule_Context)
        RETURN Ot_Rule_Activation_Result
       IS
        PRAGMA AUTONOMOUS_TRANSACTION;
        v_Result NUMBER;
        CURSOR Cur_Promo_Logos IS
          SELECT Pvlo.Promo_Id,
                 Evt.On_Date,
                 Evt.Channel_Id,
                 Evt.Start_Time,
                 Evt.Duration,
                 Pvlo.Logo_Id
            FROM Event                  Evt,
                 Event_Technical_Data   Etd,
                 Promo_Version_Logo_Opt Pvlo,
                 Promo_Timing           Pt
           WHERE Evt.Event_Technical_Data_Id = Etd.Event_Technical_Data_Id
                 AND Etd.Promo_Timing_Id = Pt.Promo_Timing_Id
                 AND Pt.Promo_Timing_Id = Pvlo.Promo_Timing_Id
                 AND Evt.Channel_Id = Rc.Channelid
                 AND Evt.On_Date >= Rc.Fromdate
                 AND Evt.On_Date <= Rc.Todate
                 AND Evt.Day_Type_Id = Rc.Daytype;
      BEGIN
        FOR Each_Record IN Cur_Promo_Logos LOOP
          v_Result := Testing_Pkg.Insert_Event(v_Channel_Id   => Each_Record.Channel_Id,
                                                           v_Tx_Time      => Each_Record.Start_Time,
                                                           v_Tx_Date      => Each_Record.On_Date,
                                                           v_Content_Id   => Each_Record.Logo_Id,
                                                           v_Duration     => Each_Record.Duration,
                                                           v_Event_Type   => Uktv_Tools_Pkg.c_Logo_Kind_Code,
                                                           v_Container_Id => Each_Record.Promo_Id);
          IF v_Result = -1
          THEN
            EXIT;
          END IF;
        END LOOP;
      END Promo_Version_Logo_Rule;
    END Promo_Version_Logo_Pkg;why do I get this "Hint: Function 'Promo_Version_Logo_Rule' does not return a value" after I compile it? The Testing_Pkg.Insert_Event should insert some values somewhere...I just want to try to test it before I move on onto the next bit of it, but I do not understand what I am doing wrong...
    Thanks

    You need something like:
        END LOOP;
        RETURN v_Result;  -- if this is what you are trying to get the function to do
        EXCEPTION
          WHEN OTHERS THEN
          <exception handling/logging - whatever you want>
          RAISE;  --this with then raise an error back to the calling process
      END Promo_Version_Logo_Rule;This way the function either returns a value, or an exception which can be handled in the calling procedure

  • MessageChoice does not return correct value

    Hi
    I am problem with MessgeChoiceBean's improver beharior
    For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
    In another page it does not return any thing for the first two selections. And I reciev flip values.
    I ran VO outside, VO is returning correct values.
    MessageChoice attributes and associated PPR:
    Data Type: Varchar2
    Initial Value: N
    Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
    Pick List View Instance: YesNoVO3
    Pick List Display Attribute: Meaning
    Pick List Value AttributeL LookupCode
    ActionType: firePartialAction
    Event: handleNewLocationFlagChange
    Parameter Name: newLocationFlag
    Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
    ProcessParameterForm Code:
    if ("handleNewLocationFlagChange".equals(event))
    String newLocationFlag = pageContext.getParameter("newLocationFlag");
    Serializable[] parameters = { ""+newLocationFlag};
    Class[] paramTypes = { String.class};
    am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
    VO definition:
    select LOOKUP_CODE,MEANING
    FROM ONLINE_DOCS_LOOKUPS
    WHERE ONLINE_DOCUMENT_CODE = 'ALL'
    AND LOOKUP_TYPE = 'YESNO'
    ORDER BY ATTRIBUTE1
    View output:
    LOOKUP_CODE     MEANING
    N     No
    Y     Yes
    I have quite a bit number of columns to change render property.
    Any help will be appreciated.
    Thanks
    Prasad

    Your question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?

  • HT204017 Yosemite update does not solve wifi problems

    yosemite update does not solve wifi.  Apple are as garbage as Microsoft now, but they have the cheek to charge twice as much!,
    Apple, you have lost my future business...might as well buy a cheap windows laptop now.

    Hello Chutley,
    Thank you for using Apple Support Communities.
    Depending on what is happing with your Wi-FI connection, the update may or may not resolve your issues. Since updating didn't resolve your issues, you might want to take a look at the following article for additional steps to try:
    Wi-Fi: How to troubleshoot Wi-Fi connectivity - Apple Support
    Regards,
    Jeff D. 

  • Why is the giving me this error (method does not return a value) PLEASE !!

    I have this code and it is giving me this error and I don't know how to fix it
    can anyone out there tell me why
    I have included the next line of code as I have had problems in the curly brackets in the past.
    The error is
    "Client.java": Error #: 466 : method does not return a value at line 941, column 3
    Please help
    THX TO ALL
    private Date DOBFormat()
        try
          if
            (MonthjComboBox.getSelectedItem().equals("") || 
             DayjComboBox.getSelectedItem().equals("") ||
             YearjComboBox.getSelectedItem().equals("")){
          else
            String dateString = StringFromDateFields();
            SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
            Date d = df.parse(StringFromDateFields());
            System.out.println("date="+d);
            return d;
        catch (ParseException pe)
          String d= System.getProperty("line.separator");
          JOptionPane.showMessageDialog( this,
           "Date format needs to be DD/MM/YYYY,"+ d +
           "You have enterd: "+ StringFromDateFields()   + d +
           "Please change the Date", "Date Format Error",
           JOptionPane.WARNING_MESSAGE);
          return  null;
      //File | Exit action performed
    public void jMenuFileExit_actionPerformed(ActionEvent e) {
      System.exit(0);
      }

    Fixed it needed to have a return null;
    this is the code
    if
            (MonthjComboBox.getSelectedItem().equals("") ||
             DayjComboBox.getSelectedItem().equals("") ||
             YearjComboBox.getSelectedItem().equals("")){
            return null;

  • Basic Function Generator does not return current time stamp

    The Basic Function Generator .VI file does not return the current time stamp.Instead it counts from 1904.
    Is there a solution to this so that the basic function generator returns a current time stamp?

    "Is there a solution to this" ...  yes, if you expand that to include "workarounds":
    Attachments:
    Example_VI.png ‏5 KB

  • _api/Web/Lists/GetByTitle does not return People or Group lookup value with $expands

    I have a list in SharePoint 2013 with a people picker field. I am trying to retreive the list info on cient side in javascript. URL does not take lookup field display name (as stated in some articles) but it was taking AssignedPAId instead. However further
    expands does not return any thing. I need to return the assigned to user name in this case.
    List columns
    Title
    primaryowner
    AssignedPA (People or Group field)
    REST Query URL:
    _api/Web/Lists/GetByTitle('demolist')/items?$select=Title,primaryowner,AssignedPAId/Name&$expands=AssignedPAId/Name
    It keeps returning me Id only regardless i am asking /Name.
    Any help on query? Please suggest a working query only. i have already googled/binged enough.........................
    Moonis Tahir MVP SharePoint,MCTS SharePoint 2010/2007, MCPD.net, MCSD.net, MCTS BizTalk 2006,SQL 2005

    Hi,
    According to your post, my understanding is that you want to get the user name of the people picker control.
    To get the user name in the people picker control, we can use the SPService to achieve it.
    There is a function called
    SPFindPeoplePicker , we can use this function to get the display name.
    There is an article about this topic, you can refer to it.
    http://sympmarc.com/2012/04/22/working-with-sharepoint-people-pickers-with-jquery-a-new-function-called-findpeoplepicker/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

Maybe you are looking for