What is different and purpose between std. function

yukonyukon Member Posts: 361
Dear fri,


Today!One of my fri ask me what is different between below std. two function. For me nothing different. :D I hope someone can be explain to me. I saw more than one function on
Page 54.

_InsertExtendedText(Unconditionally : Boolean)
IF TransferExtendedText.PurchCheckIfAnyExtText(Rec,Unconditionally) THEN BEGIN
  CurrPage.SAVERECORD;
  TransferExtendedText.InsertPurchExtText(Rec);
END;
IF TransferExtendedText.MakeUpdate THEN
  UpdateForm(TRUE);
InsertExtendedText(Unconditionally : Boolean)
IF TransferExtendedText.PurchCheckIfAnyExtText(Rec,Unconditionally) THEN BEGIN
  CurrPage.SAVERECORD;
  TransferExtendedText.InsertPurchExtText(Rec);
END;
IF TransferExtendedText.MakeUpdate THEN
  UpdateForm(TRUE);
Make Simple & Easy

Comments

  • gerrykistlergerrykistler Member Posts: 149
    The functions with the underscore are not standard functions, this is not standard naming. I would guess someone has copied the standard functions into a new one with the underscore added. The code you show is exactly the same.

    This is the list of functions on a standard Form 54:

    Name
    ApproveCalcInvDisc
    CalcInvDisc
    ExplodeBOM
    OpenSalesOrderForm
    InsertExtendedText
    ShowReservation
    ItemAvailability
    ShowReservationEntries
    ShowTracking
    ShowDimensions
    ItemChargeAssgnt
    OpenItemTrackingLines
    OpenSpecOrderSalesOrderForm
    UpdateForm
    SetUpdateAllowed
    UpdateAllowed
    ShowPrices
    ShowLineDisc
    ShowLineComments
    Gerry Kistler
    KCP Consultores
  • yukonyukon Member Posts: 361
    Hi gerrykistler,

    Thanks for your reply.
    The functions with the underscore are not standard functions, this is not standard naming. I would guess someone has copied the standard functions into a new one with the underscore added. The code you show is exactly the same.
    But i not agree with you
    someone has copied the standard functions
    . If you open Page and go to Item Availability by Page action you'll be see it. :)

    <Action1902027204> - OnAction()
    //This functionality was copied from page #50. Unsupported part was commented. Please check it.
    {CurrPage.PurchLines.FORM.}
    _ItemAvailability(0);
    

    Noted: I'm looking on W1 2009 SP1 Std. and SG R2 Std database without modified.

    Regards,
    Yukon
    Make Simple & Easy
  • gerrykistlergerrykistler Member Posts: 149
    My mistake - I was thinking you were talking about Form 54. The one with the underscore is the function for the Page, the one without is what was originally copied from the Form during transformation. In this case the functions are both the same.
    Gerry Kistler
    KCP Consultores
Sign In or Register to comment.