Blanket Purchase Order Archive Document card is not opening

mkpjsrmkpjsr Member Posts: 587
Hi all,

I am not able to view the Card of Blanket Purchase Order Archive Document. If I click the "No. of Archived versions" field on Blanket Purchase Order Card and going to the Line->Card button on "Purchase List Archive" form, then the card is not opening however its working on "purchase Order" card.

what may be the reason???

Answers

  • swjswj Member Posts: 68
    Hi,

    You need to create new form for blanket purchase order then name it as "Purchase Blanket Order Archive".
    Add the following code on Form 5166 > Line button

    Note: If you have developer license.
  • mkpjsrmkpjsr Member Posts: 587
    swj wrote:
    Hi,

    You need to create new form for blanket purchase order then name it as "Purchase Blanket Order Archive".
    Add the following code on Form 5166 > Line button

    Note: If you have developer license.

    If I am doing this its giving an error "There is no Purchase Header Archive within the filter"

    filters : Document Type:Order, No:PO/09-10/174, version:0

    why it is showing type as "Order" it should be "Blanket Order" i think.....
  • swjswj Member Posts: 68
    Hi,

    1. make sure u have changed SourceTableView on the new form to Blanket Order
    2. from the screenshot seems that you are opening from Order? Not from Blanket Order?
  • mkpjsrmkpjsr Member Posts: 587
    swj wrote:
    Hi,

    1. make sure u have changed SourceTableView on the new form to Blanket Order
    2. from the screenshot seems that you are opening from Order? Not from Blanket Order?

    hi, thanx a lot for the reply,

    1. I have changed the SourceTableView on the new form to Blanket Order
    2. and I am calling it from Blanket Order,

    In the code I have written

    Message('%1',Rec);

    and its showing the Document Type as "Blanket Order", see the attachement.
  • mkpjsrmkpjsr Member Posts: 587
    I have tried this ,
    CASE "Document Type" OF
      "Document Type"::Order:
        FORM.RUN(FORM::"Purchase Order Archive",Rec);
      "Document Type"::Quote:
        FORM.RUN(FORM::"Purchase Quote Archive",Rec);
      "Document Type"::"Return Order":
        FORM.RUN(FORM::"Purchase Return Order Archive",Rec);
      "Document Type"::"Blanket Order":
        FORM.RUN(FORM::"Blanket Purchase Order Archive",Rec);
    END;
    

    I have created a form Blanket Purchase Order Archive as a copy of "Purchase Order Archive" and have also changed the SourceTableView property as "WHERE(Document Type=CONST(Blanket Order))"

    i am getting this error
    "there is no purchase header within the filter"
    Filters: Document Type:Order, No.:=PO/09-10/0174;version No.:=1


    can any body suggest me what is wrong
  • mkpjsrmkpjsr Member Posts: 587
    any suggestion~!!!!!!
  • AndwianAndwian Member Posts: 627
    It because of there is a conflict when loading the Blanket Purch. Archive Subform.

    Try this:
      1. Create the new Blanket Purch. Archive Subform form 2. On the Blanket Purch. Archive Order, on the PurchLineArchive, set the SubformID to the subform above 3. On the Blanket Purch. Archive Subform form, change the SourceTableView to: WHERE(Document Type=CONST(Blanket Order))
    Regards,
    Andwian
  • mkpjsrmkpjsr Member Posts: 587
    Andwian wrote:
    It because of there is a conflict when loading the Blanket Purch. Archive Subform.

    Try this:
      1. Create the new Blanket Purch. Archive Subform form 2. On the Blanket Purch. Archive Order, on the PurchLineArchive, set the SubformID to the subform above 3. On the Blanket Purch. Archive Subform form, change the SourceTableView to: WHERE(Document Type=CONST(Blanket Order))


    Its done, actually I was forgetting the third step.
    thanx.
Sign In or Register to comment.