Success  message

Hello friends,
I am using apex 4.2. Theme 23.
I have Skillbuilder Modal Page DA to be fired when X event :
Auto-close On Element Selector : #uSuccessMessageAnd the Modal page works fine, but when closing the modal page, the success message does not show up:
I have Execute Java script when Auto close skillbuilders modal page:
$('#uSuccessMessage')
.hide()
.empty()
.append(this.data.$modalPageCloseObject)
.slideDown('slow');** The branch on the Page that shows up on the Modal Page includes process success message.
What did I miss ??
Regards,
Fateh
Edited by: Fateh on Nov 5, 2012 4:22 AM

Fateh,
I found the email you sent me with the demo login. If possible as that to the blog post in the future so that others can help.
First, you need to start using Firefox w/Firebug. I was immediately able to spot an error. Here's the code you had before:
$('#uSuccessMessage')
   .hide()
   .empty()
   .append(this.data.$modalPageCloseObject)
   .slideDown('slow');
var successMessage = this.data.$modalPageCloseObject;
var custObjText = successMessage.find('#uSuccessMessage').text();
var custObj = $.parseJSON(custObjText);
$s('P1_X', custObj.someProp);I'm not sure what you're trying to do with the bottom part, but as it was creating an error and it's not related to the success message, I'm removing it for now.
Second,
The top part of the code works, as you know, with other themes but not the new one. The important thing to do is understand how the code is working so that you can adapt it as needed. Here's some new code that does work for your new theme:
var $successMessage = this.data.$modalPageCloseObject;
$('#uSuccessMessage').remove();
$successMessage
   .hide()
   .insertAfter('#uHeader')
   .slideDown('slow');Spend some time looking up how the jQuery methods work to understand why the changes were needed. It will be time well spent. :)
Regards,
Dan
blog: http://DanielMcghan.us/
work: http://SkillBuilders.com/APEX/

Similar Messages

  • Skillbuilders modal page - success message not closing in Internet Explorer

    Hello,
    I'm using Skillbuilders modal page plugin on Apex 4.1.
    The plugin works great in all browsers except in IE, where I'm unable to close the success message by clicking on the "x" in the upper right corner.
    I'll explain further.
    I have a report on, say, page 10, and I'm editing each row in a modal page (page 11). Upon saving the changes, the modal page closes and a success message is shown on the page 10. I can see the message both in Firefox and IE, however, I am unable to close it in IE.
    When I inspect the success message using Firebug in Firefox, I see that I have:
    <div id="messages" style="display: block;">
    <div id="success-message" class="success">
    <img class="remove-message" onclick="$x_Remove('success-message');" alt="" style="float:right;" src="/i/delete.gif">
    Action processed.
    </div>
    </div>However, when I inspect the success message in IE, I see:
    <div id="messages">
    </div>The success message is shown on the page, but it doesn't show in the page source code, and clicking on the "x" doesn't close it.
    I've tried it with several themes, the problem persists.
    Does anyone have any idea what might be the problem here?
    Did someone have a similar problem?
    Thank you!

    I've been looking at it, kind of gutted that indeed the semi-colon means nothing. Was sure that was it, and then didn't bother to test it in the template anymore as it ate so much time already. That should teach me...
    Anyway, I was puzzled too. Apparently it has to do with IE8 and jQuery appending code to the document, whether it is .append or .before. The element is there and all, but the onclick just does nothing. Why did it work after editing it? Probably because IE was then able/willing to pick the attribute up.
    I've fiddled with it over and over, trying to find something ,googling it, but couldn't really find a certain cause nor fix. Putting   in the anchor? Nope. Onclick reacting only on second click? Nope. Just do an alert? Nope. Just nothing works at all. I really just gave up. IE8 is just such a headache that by trying to "fix" it in its ways you're off worse.
    In the end I fixed it in another way. My template is different than yours but the technique is the same.
    I removed the onclick attribute from the success message region, on both page templates. If it ain't gonna work I don't want it there (good riddance too). I changed the href attribute too by just putting "#" in, which is probably just me being pedantic. This is my result success message template:
    <section class="uRegion uWhiteRegion uMessageRegion clearfix" id="uSuccessMessage">
      <div class="uRegionContent clearfix">
        <a href="#" class="uCloseMessage"></a>
        <img src="#IMAGE_PREFIX#f_spacer.gif" class="uCheckmarkIcon" alt="" />
        <div class="uMessageText">
          #SUCCESS_MESSAGE#
        </div>
      </div>
    </section>To be able to close it, I added some javascript in the page header:
      <script type="text/javascript">
        $(document).delegate(".uCloseMessage", "click", function(){$(this).closest(".uMessageRegion").remove(); return false;});
      </script>This is much in the way of a dynamic action with scope "live". I didn't want to bother with having to put a dynamic action on each page, and is why I did it this way. It works fine in each browser too, so hurray.
    Your solution works too of course, it's much the same. I wouldn't call it a "workaround" too, since it didn't work initially anyway. I wouldn't look further and stick with what works best for you. :)

  • Report with BDC not displaying success message when run in Background

    I am running a  BDC report in Background mode.The below statement  is not capturing the Success message when a document is posted.But when I am running the same in ForeGround mode it is capturing and is displayed in the output.Can anyone please help me in understanding why this is happening and how can I resolve this.
    CALL TRANSACTION 'MB1C' USING bdcdata MODE mode UPDATE 'S'
         MESSAGES INTO messtab.

    Hi Madhu,
    I think your BDC didnt generated any document when you run it in 'N' screen mode.
    Debug your program when you run it in background
    Goto Tcode :SM37
    Select the job ( march checkbox )
    ==> in command prompt enter 'JDBG'
    ==> Then you can start reexecting the job .
    You can check the sucess messages accordingly in debug mode
    Also add a read statement on messtab for msgtype = 'S'.
    Thanks
    Bhanu

  • How to display success message when data is changed in the custom tab in MM

    Hi,
    I have added a new custom data tab in the MM01/MM02/MM03 transactions. Whenever I do changes to fields in the custom tab in MM02 transaction, and no changes in the standard tabs, I will get a message stating "No Changes Made".
    But if I do changes in the standard tabs, it works as usual with display of message "Changes to particular material has been done.
    Please let me know, if anyone of you know, how to display the success message if the changes to the custom tab is done.
    Thanks in advance,
    sudhanva

    Hi Sudhanva,
    The exit EXIT_SAPLMGMU_0001 is a function exit that you can use for custom validation but not to add custom tab/screen.
    But the message issued by SAP is not related to this Function Exit.
    If you have used a Screen Exit, then there must be some Function Exits also in the same Enhancement using which you can assign the value of custom fields to/from the standard structure. Thus when the value of any custom field is changed the system can understand that the some changes have been changed and will  not issue the message.
    In case you have used a BADI, there can be other methods in the BADi using whcih you can assign the value of custom fields to/from the standard structure. This might also prevent the message from being displayed.
    I could try giving you further details if you can provide the name of the Enhancement/BADi that you used to add the additional tab.
    Hope this helps.
    Regards,
    Abhisek.

  • How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    How can I include a success message in a drag and drop interaction - I don't see this option in the Actions on success options, and cannot figure it out?

    I suspected you used the eye icon on the timeline to hide the message, but that one has no impact whatsoever on the published version. It is only meant to be used for editing reasons on the stage, to hide objects temporarily on a crowded stage. It is confusing, certainly in CP8 where for both instances the same eye icon is used. In previous versions the Properties panel had a checkbox for 'Show in Output', which was IMO much clearer than this eye icon. But of course, that is only my personal opinion.

  • How to include HTML tags in a success message?

    I have seen a few posts on this topic in the past, but have not seen a definitive response...apologies if this has been answered.
    I would like to have a dynamic process success message that includes some HTML tags in it - in this case an anchor tag that can jump the user back to the object he/she just edited.
    So, I build up a dynamic success message in a page variable - say P10_SUCCESS_MSG - and set the Process Success Message field in the relevant Process to &P10_SUCCESS_MSG.
    The problem is that when the page template substitutes in my message for #SUCCESS_MESSAGE# it looks like it also escapes any HTML tags, so the markup gets displayed literally on the page.
    Is there any recommended way to override or get around this behavior?
    Many thanks,
    Bill

    I just noticed that it looks like the success message is passed around on the URL - when I look at my URL after a successful form process, I see &success_msg=BIG_UGLY_ESCAPED_SUCCESS_MSG_HERE embedded in the URL. If this is the case, I can see why - technically - it ends up getting escaped. Looks like I may have to figure out my own hack for success message processing - maybe some weird post-processing of a placeholder success token that I replace in a page 0 process or something...

  • How to display success message in function module

    Hi Experts,
                      I am developing new function module regarding URL finder. As per my requirement ,
                                                 If USER ID is not provided -display SUCCESS MESSAGE and Provide sy-uname.
    how to display success message.if possible can You write the code.
    Thanks
    raju

    Hello,
    We can use an exporting parameter like single character field like 'S' for success and 'E' for error instead of a message.
    Another option is you can use the Tables parameter and populate Return table with error or success message. Return table of type 'BAPIRET2'.
    Hope this might help you!
    Regards,
    MM Jaffer.

  • Process Success Message not working

    Hi
    I have created a process to send a mail on some button click...
    The process success message i have given that
    Mail Sent Successfully!
    Though the mail is coming I am not getting the Mail Sent Message!
    Can someone help to let me know what am I missing?
    Thanks
    Ankit

    Ok another fishy question
    Can a process sent a Successful Message without completing the task?
    I get the message Mail Sent though I never receive the mail...
    In test environment apex.oraclecorp.com it is working sending the mail.
    But in production database.us.oracle.com it is not working :(
    I have made the exact copy in production site!
    What can i be missing?

  • Process Success Message not displaying properly

    Hello.
    I know there are many threads about this problem. But i can't get it right.
    I have custom MRU process like:
    DECLARE
      p_updcount NUMBER := 0;
    BEGIN
      FOR i IN 1 .. apex_application.g_f08.COUNT                       
      LOOP
        IF apex_application.g_f08 (i) IS NOT NULL                  
          AND substr(APEX_APPLICATION.g_f20 (i),40) !=
          wwv_flow_item.md5 (apex_application.g_f07 (i),
                    apex_application.g_f08 (i),
                          apex_application.g_f09 (i),
                             apex_application.g_f10 (i),
                             apex_application.g_f11 (i),
                             apex_application.g_f12 (i),
                             apex_application.g_f13 (i),
                             apex_application.g_f14 (i),
                             apex_application.g_f15 (i),
                             apex_application.g_f16 (i),
                             apex_application.g_f17 (i),
                             apex_application.g_f18 (i),
                             apex_application.g_f19 (i)
                             )||'"  />' THEN
         UPDATE table
              SET ...
           WHERE id = ...;
          p_updcount := p_updcount + 1;
        END IF;
      END LOOP;
      :P232_UPDATE_NUMBER := p_updcount;
    END;
    {code}
    In the same process, success message looks like:
    Number of updated records: &P232_UPDATE_NUMBER. .
    Item :P232_UPDATE_NUMBER is text item.
    Even if i set default value in item, it doesn't work. Value is shown in item, but not in message.
    Message looks like: Number of updated records:  .
    Items "Source used" is set to Only when...
    If i set it to Always, ..., value doesn't appear in item.
    Any idea?
    Thanks.
    Regards,
    Dejan                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Hi,
    If i write code to check for updates after header, it is not necesary true that the user already updated some columns?Or am i wrong?>
    The Custom MRU has to be OnSubmit. I was talking about initialization of the Page Item
    To set the value of the item in Session State set the value using Before or After Header Computation or Process.E.g. write After Header Computation for P232_UPDATE_NUMBER > Static Assignment > 0
    . I am not referring to Custom MRU.As I said earlier, if your CustomMRU process runs you should see a number >= 0 in the message. You will need to initialize only, to say 0, only for situations when the Custom MRU does not run (condition evals to false).
    Cheers,

  • APEX does not show 'Process Success Message'

    Hi,
    I was hoping to get help on a weird APEX issue.
    I have two identical APEX pages with the same templates. One of the page does not show the process success message after it inserts to the database. It does insert, just the message does not show up.
    I looked at the page that works and it is identical to this page. Does anyone have any good advice? I would really appreciate it.
    Thanks!

    When I see this, it usually turns out that I forgot to tick the check box for "include process success message" on a "Branch" object.

  • Executing BAPI_PO_CREATE1 in a loop results in multiple success messages

    Hi all,
    I have a process where I need to create multiple POs with one item each. For creating the POs I use BAPI_PO_CREATE1. The creation itself works fine and created POs are also correct.
    But what is a bit confusing is the content of the RETURN table of the BAPI. From the second created PO on I also get ALL messages of the previously created POs although I have a COMMIT WORK AND WAIT after each creation and the return table is always empty when executing the BAPI.
    Example:
    I need to create two POs.
    First run of the BAPI_PO_CREATE: PO A is created and return table has success message "PO A successfully created"
    Second run of the BAPI_PO_CREATE: PO B is created and return table has two success messages: "PO A successfully created" and "PO B successfully created"
    But for the second run I also would expect to get only one success message.
    Why do I get too many messages? Or do I need to initilize the BAPI somehow?
    By the way, I have the same problem with BAPI_PO_CHANGE.
    regards
    René

    Hi,
    so again: the return table is cleared/refreshed all times when executing the loop and a commit is done!
    Unfortunately the whole coding is implemented to the SAP AIF so the AIF is doing the loops. But in debugging I clearly see that the return table is empty before executing the BAPI.
    Here is the coding. The AIF calls the here described function module in a loop and executes a commit work and wait after each call of the FM.
    FUNCTION POST_PURCHASE_ORDER.
    *"*"Local Interface:
    *"  IMPORTING
    *"     REFERENCE(TESTRUN) TYPE  C
    *"     REFERENCE(HASH_TAB) TYPE  /AIF/HASHTAB_T OPTIONAL
    *"     REFERENCE(IDX_TAB) TYPE  /AIF/IDXTAB_T OPTIONAL
    *"  TABLES
    *"      RETURN_TAB STRUCTURE  BAPIRET2
    *"  CHANGING
    *"     REFERENCE(DATA)
    *"     REFERENCE(CURR_LINE)
    *"     REFERENCE(CURR_DATA)
    *"     REFERENCE(SUCCESS) TYPE  /AIF/SUCCESSFLAG
    *"     REFERENCE(OLD_MESSAGES) TYPE  BAL_T_MSG
      DATA: lt_po_items        TYPE TABLE OF bapimepoitem,
            lt_po_itemsx       TYPE TABLE OF bapimepoitemx,
            lt_bapiparex       TYPE TABLE OF bapiparex,
            lt_po_conditionx   TYPE TABLE OF bapimepocondx,
            lt_po_header_texts TYPE TABLE OF bapimepotextheader,
            lt_po_item_texts   TYPE TABLE OF bapimepotext,
            ls_po_headerx      TYPE bapimepoheaderx,
            ls_po_headerx_cust TYPE bapi_te_mepoheaderx,
            ls_po_itemx        TYPE bapimepoitemx,
            ls_po_condition    TYPE bapimepocond,
            ls_po_conditionx   TYPE bapimepocondx,
            l_testrun          TYPE bapiflag-bapiflag.
      CHECK curr_line IS NOT INITIAL.
      REFRESH: return_tab[].
      CLEAR: return_tab[].
      l_testrun = testrun.
    * Get X-structures for PO header
      PERFORM fill_x_structure USING curr_line-po_header 0 CHANGING ls_po_headerx.
    * Create PO Header Custom Fields.
      PERFORM fill_bapiparex USING curr_line-po_header_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structures for PO ExtensionIn fields and post them to ExtensionIn as well
      PERFORM fill_x_structure USING curr_line-po_header_cust 0 CHANGING ls_po_headerx_cust.
      PERFORM fill_bapiparex USING ls_po_headerx_cust space
                          CHANGING lt_bapiparex[] return_tab[].
    * Get X-structure for PO item
      curr_line-po_item-info_upd = 'A'.
      curr_line-po_item-po_price = '1'.
      PERFORM fill_x_structure USING curr_line-po_item 1 CHANGING ls_po_itemx.
      ls_po_itemx-po_item        = curr_line-po_item-po_item.
      curr_line-po_item-po_price = space.
      curr_line-po_item-info_upd = space.
      APPEND curr_line-po_item  TO lt_po_items.
      APPEND ls_po_itemx TO lt_po_itemsx.
    * Get X-structures for PO conditions
      IF NOT curr_line-po_conditions IS INITIAL.
        LOOP AT curr_line-po_conditions INTO ls_po_condition.
          CLEAR ls_po_conditionx.
          ls_po_conditionx-itm_number = ls_po_condition-itm_number.
          PERFORM fill_x_structure_2 USING ls_po_condition 3 0
                                  CHANGING ls_po_conditionx.
          APPEND ls_po_conditionx TO lt_po_conditionx.
        ENDLOOP.
      ENDIF.
    * Get header and item texts
      APPEND curr_line-po_header_text TO lt_po_header_texts.
      APPEND curr_line-po_item_text   TO lt_po_item_texts.
    * Execute BAPI_PO_CREATE1
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = curr_line-po_header
          poheaderx        = ls_po_headerx
          testrun          = l_testrun
          no_price_from_po = c_checked
        IMPORTING
          exppurchaseorder = curr_line-po_number_return
        TABLES
          return           = return_tab
          poitem           = lt_po_items
          poitemx          = lt_po_itemsx
          pocond           = curr_line-po_conditions
          pocondx          = lt_po_conditionx
          extensionin      = lt_bapiparex
          potextheader     = lt_po_header_texts
          potextitem       = lt_po_item_texts
        EXCEPTIONS
          error_message    = 1.
      IF sy-subrc = 1.
        IF NOT sy-msgid IS INITIAL
          AND NOT sy-msgty IS INITIAL
          AND NOT sy-msgno IS INITIAL.
          PERFORM util_add_msg USING sy-msgty sy-msgid sy-msgno sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 CHANGING return_tab[].
        ENDIF.
      ENDIF.
    ENDFUNCTION.

  • ADF 11g:Success message on fire fox Staus bar

    Hi all,
    Im working on ADF 11g - Jdeveloper 11.1.1.2.
    The page contains a ADF table with Create, Edit and delete operations. The success messages of these operations have to be displayed on the staus bar of the Fire fox browser.
    Ex: "Record Successfully created" whenever there is a successful insertion of a record in the ADF table.
    How to display the user generated message on the staus bar of Fire fox? Please help....
    Thanks,
    Manasa.

    I'll bite. Presumably you're trying to mimic the same functionality from Forms. Firstly I'll flag that you need to convince users that browsers aren't Forms, and they do things in their own ways. A typical browser user doesn't look to the status bar for messages from an application, the status bar is reserved for browser raised messages.
    Yet I also understand it's hard to bend such requirements, so in addressing that requirement specifically, my understanding is the ADF framework doesn't provide this functionality out of the box. You will need to build your own. As a start independent of ADF there appears the ability in Javascript to write to the browser status bar through a function called statsword: http://www.htmlite.com/JS017.php
    At this stage I've no inspiration on how to build this in to an ADF solution (it's far too early in the morning), maybe another reader can help, but I suspect a solution might use the ADF af:serverListener and af:clientListener tags.
    CM.

  • Web ADI Importer Success Message Creation failing

    Hi Gurus,
    When I'm trying to create a 'Success Message' importer, it is failing with the below error:
    "oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[20003 SM_501017 US ]."
    When I observed the standard integrator, which has 'Success Message' importer rule, the 'Importer' step has the same exception. Anyone create the 'Success Message' successfully without any error.
    My requirement is that I get a value(reference as 'total') from a pre-importer sql query and I want to show this value ($importer$.total) in the success message.
    I'm using :
    EBS 12.1.3
    Windows XP
    Database 11.2.0.3.0
    Please help me in resolving this issue.
    Thanks
    Madhu

    Alternatively, copy from an existing uploader (search in BNE_INTEGRATORS_B) with the SQL below.
    update BNE_INTEGRATORS_B
    set
    upload_param_list_app_id = 20003
    ,upload_param_list_code = <find one to copy from>
    where integrator_code = <your code>
    not supported, but does the trick.
    Good luck
    Jeroen

  • How to change the   Success Message  for Personal Data Screen in ESS

    Hi,
           While saving the Personal Data in the ESS  I want to chage the Success message.When I check the DC , Message Class  i am not able to find the  the particular string.Can any  one please  guide how to find the Success Message String   for this Personal Data Screen or Which BAPI  I  have to check .
    Regards
    Alexi

    Hi  iidhya ,
      Please find the code below
        public boolean onEvent( )
        //@@begin onEvent()
        String event = fpm.getEventData().getEventName();
              if (event.equals(IFPM.EVENT_ADD)){
                   wdThis.wdGetFcPersInfoInterface().setModeForCreate(selectedSubtype);
              }else if(event.equals(IFPM.EVENT_EDIT)){
                   wdThis.wdGetFcPersInfoInterface().setModeForEdit(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              }else if(event.equals(IFPM.EVENT_REMOVE)){
                   wdThis.wdGetFcPersInfoInterface().setModeForDelete(wdThis.wdGetFcPersInfoInterface().getSubtypevalue(selectedRecord));                              
              return true;
        //@@end
    Regards
    Alexi

  • How to display Success Message in PDF

    Hello all
    I need to display a success messgae in ODF. but without he message box.
    It should be such that, after the success, the user should not click yet see the success message.
    I got only MEssageBox. But that gives a pop up.
    Please let me know about other methods.
    Regards,
    Aditya Deshpande

    If you are using Web Dynpro then you can make use of the MessageArea control and display the messages there.
    Alternatively if you want to achieve this in Adobe itself then probably you will need to play with a text field and hide / unhide depending upon your execution.
    High level steps would be:-
    1. Create a TextField / TextArea element and bind it to the success node in your form. Initially you need to hide it.
    2. Upon submission, when the execution is complete then unhide it and show the message displayed the response you receive.
    PS: You will need this to be an Interactive Form for this to work.
    Chintan

  • Warnings and success messages in F-02

    Hi Techi's
    I am having a very strange issue in F-02 for posting in G/L accounts. It goes like that.
    When I run the BDC in forground mode, whatever the information and success messages are being trapped are being captured in the IMSG table and later when I process the IMSG table givning perfect results including the last message number 312 (saying document number posted)
    But this BDC would be scheduled in background later and when I run this in background call transaction is not traping the complete information and success messages including the last message number 312 also. 
    My complete processing is based on the last messages only which is the successful document number generation.
    Please tell me why its not capturing that document number generation message. How can I reslove this.
    Please help as soon as possible, its going very terrible now.
    Regards,
    -=Maddu=-

    Hi all
    I have found the solution to my problem. The question was, if I turned off the messages in the web template, is there another way to see the information and warning messages.
    The way to do this is to put &WARNINGS_VISIBLE=X and/or &INFORMATION_VISIBLE=X at the end of the URL.
    Thanks for all who helped.
    Edited by: Nicholas Chia on Jul 20, 2009 12:43 PM

Maybe you are looking for

  • Report Builder 1.0 .RDL Files on Report Builder 3.0

    My group has developed a lot of .rdl files using Report Builder 1.0 over the years and we're finally upgrading to Report Builder 3.0 with SQL Server 2014.  Will our old .rdl files still work on the new version?

  • Ghost emails in Mail

    Using Mail 3.6 in Leopard 10.5.8 I know this is not a big deal, but it's annoying me and I'm sure there must be a simple fix. There are two ghost emails, one in the Inbox and one in Sent - both have names, dates and subjects but no content. No matter

  • Help on report adjust and printing

    I found it is very difficult to do the editing work in Report Layout Editor. Anybody who can give some experience on that. Thanks a lot! My problems are always making the frames overlap eachother, after I put them back to original position, they can

  • About database object

    hi is ref cursor is an object? Message was edited by: p.bhaskar

  • IPhone 3gs won't update to ios 5.1.1 PLEASE HELP!

    I got an iPhone 3GS from a friend thats running 4.3.3 and when i try to update it to 5.1.1 it says "isnt compatible with this build" or something like that. Also its jail broken (updating issue also happened before it was jailbroken) and everytime i