Code: [Report: SmReport] Use : DSP Template Form : PQRReport Title : "Quotation Report" Set : SVFromDate : $$MonthStart:##SVCurrentDate Set : SVToDate : $$MonthEnd:##SVCurrentDate Set : SalesManChqVar : "Full" Set : SalesManName : "" [Form: PQRReport] Use : DSP Template Parts : PQRReport Height : 100% screen Width : 100% screen Delete : Buttons: ExplodeFlag Background: @@SV_RELEASEDLEAFGREEN_PL; Very Light Sea Green ;Delete : Bottom Buttons: DSPAutoColumns, RelReports,BudgetAnalysis, ReportConfig Bottom Toolbar Buttons : BottomToolBarBtn1, BottomToolBarBtn6, BottomToolBarBtn7, BottomToolBarBtn8, BottomToolBarBtn9, BottomToolBarBtn10, BottomToolBarBtn11, BottomToolBarBtn12, Add: Button: Salesmanfilter [Part: PQRReport] Lines:PQRTitile,PQRBody BottomLines : PQRBody Total Repeat : PQRBody :PQRSalesManVouchersColl CommonBorder: Yes Scroll : Vertical Total :PQRPartyAmount [Line: PQRTitile] Use:PQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : Default : set as : $$LocaleString:"S.No." Local : Field : PQRPartyDate : Set as: $$LocaleString:"Date" Local : Field : PQRPartyVchNo : Set as: $$LocaleString:"Quot No." Local : Field : PQRPartyName : Set as: $$LocaleString:"Party Name" Local : Field : PQRPartySalesMan: Set as: $$LocaleString:"Contact Name" Local : Field : PQRPartyVchType : Set as: $$LocaleString:"Vch Type" Local : Field : PQRPartyAmount : Set as: $$LocaleString:"Amount" Border : Flush Totals [Line: PQRBody] Field:PQRSno, PQRPartyDate,PQRPartyVchNo,PQRPartyName,PQRPartySalesMan,PQRPartyVchType RightField:PQRPartyAmount Border :Thin Bottom [Field:PQRSno] Set as : $$Line Width : 1.5 cm Align : Center Border : Thin Left Right [Field: PQRPartyDate] Set as : $Date Width : 10% Screen Align : Right ;Style : Tiny Border : Thin Left [Field: PQRPartyVchNo] Set as : $VoucherNumber Width : 10% Screen Align : Center ;Style : Tiny Border : Thin Left [Field: PQRPartyName] Use : Name Field Set as : $PartyLedgerName Border : Thin Left Width : 20% Screen Align : Left ;Style : Tiny Variable: LedgerName Display : Ledger Vouchers [Field: PQRPartySalesMan] Use :Name Field Set as : $$String:$MMSalesmanName Border : Thin Left Width : 20% Screen Align : Left ;Style : Tiny Key : Create SalesmanName [Field: PQRPartyVchType] Set as : $VoucherTypeName Border : Thin Left Width : 15% Screen Align : Left ;Style : Tiny [Field: PQRPartyAmount] Use : Amount Forex Field Set as : $Amount Border : Thin Left Width : 15% Screen Align : Right ;Style : Tiny Format : "No Zero,DrCr,Symbol," + ##ShowForex [Line: PQRBody Total] Use:PQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : PQRSno : Set as: "" Local : Field : PQRPartyDate : Set as: "" Local : Field : PQRPartyVchNo : Set as: "" Local : Field : PQRPartyName : Set as: "TOTAL" Local : Field : PQRPartyName : Align : Centre Local : Field : PQRPartySalesMan: Set as: "" Local : Field : PQRPartyVchType : Set as: "" Local : Field : PQRPartyAmount : Set as: $$Total:PQRPartyAmount Border : Flush Totals ;============================== Filter =================================== [Button:SalesmanFilter] Key : Alt+S Action : Execute : SalesmanFilter Title : Contact Name [Report:SalesmanFilter] Form : SalesmanFilter ;Set : SalesmanName : "" Set : SalesManChqVar : "Filter" [Form:SalesmanFilter] Part : SalesmanFilter No Confirmation : Yes [Part:SalesmanFilter] Line : SalesmanFilter [Line:SalesmanFilter] Field : Medium Prompt,SalesmanFilter Local : Field : Medium Prompt : Set as : "Select Contact Name: " [Field:SalesmanFilter] Table : ContactNameCollection,EndOfList ShowTable : Always Use : Name Field Width : 20 Border : Thin Box Variable : PQRPartySalesman Modifies : PQRPartySalesman ;=========================================================================================== ===== ;===================================== Collections ================================================= [Collection: PQRSalesManVouchersColl] Type : Voucher Fetch : Date, VoucherNumber, VoucherTypeName,LedgerName,PartyLedgerName,MMSalesmanName, LedgerEntries.* Filter : PQRSaleManVouchers Filter : SalesManFilter [System:UDF] EnableSalesman : Logical : 1000 Commission : Number : 1001 [Variable:SalesManName] Type : String [Variable:SalesManChqVar] Type : String [System:Variable] SalesManName : "" SalesManChqVar : "" [System: Formula] PQRSaleManVouchers: $$IsSales:$VoucherTypeName OR $$IsCreditNote:$VoucherTypeName SalesManWise : $MMSalesmanName=@@SAlesManEOL SalesManFull : $MMSalesmanName=$MMSalesmanName SAlesManEOL : if $$IsEndOfList:##SalesManName then $MMSalesmanName Else ##SalesManName SalesManFilter : if ##SalesManChqVar="Filter" Then @@SalesManWise Else @@SalesManFull
Try This [System: Formula] SalesManFilter : $VCHSalesmanName = ##SalesManName Or $$IsSysName:##SalesManName
Its not working... Its not working .. i use in report which field showing in salesman = Set as : $$String:$MMSalesmanName
[Button : SalesmanFilter] Title : "Contact Name" Key : Alt+S Action : Modify Variables : SalesManChqVar Use this only......... COMMENT OUT the following........ /* [Button:SalesmanFilter] Key : Alt+S Action : Execute : SalesmanFilter Title : Contact Name [Report:SalesmanFilter] Form : SalesmanFilter ;Set : SalesmanName : "" Set : SalesManChqVar : "Filter" [Form:SalesmanFilter] Part : SalesmanFilter No Confirmation : Yes [Part:SalesmanFilter] Line : SalesmanFilter [Line:SalesmanFilter] Field : Medium Prompt,SalesmanFilter Local : Field : Medium Prompt : Set as : "Select Contact Name: " [Field:SalesmanFilter] Table : ContactNameCollection,EndOfList ShowTable : Always Use : Name Field Width : 20 Border : Thin Box Variable : PQRPartySalesman Modifies : PQRPartySalesman */
[Report: SmReport] Use : DSP Template Form : PQRReport Title : "Quotation Report" Set : SVFromDate : $$MonthStart:##SVCurrentDate Set : SVToDate : $$MonthEnd:##SVCurrentDate Variable : vSalesManName : String Set : vSalesManName : "" [Form: PQRReport] Use : DSP Template Parts : PQRReport Height : 100% screen Width : 100% screen Delete : Buttons: ExplodeFlag Background: @@SV_RELEASEDLEAFGREEN_PL; Very Light Sea Green Bottom Toolbar Buttons : BottomToolBarBtn1, BottomToolBarBtn6, BottomToolBarBtn7, BottomToolBarBtn8, BottomToolBarBtn9, BottomToolBarBtn10, BottomToolBarBtn11, BottomToolBarBtn12, Add: Button: Salesmanfilter [Part: PQRReport] LinesQRTitile,PQRBody BottomLines : PQRBody Total Repeat : PQRBody QRSalesManVouchersColl CommonBorder: Yes Scroll : Vertical Total QRPartyAmount [Line: PQRTitile] UseQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : Default : set as : $$LocaleString:"S.No." Local : Field : PQRPartyDate : Set as: $$LocaleString:"Date" Local : Field : PQRPartyVchNo : Set as: $$LocaleString:"Quot No." Local : Field : PQRPartyName : Set as: $$LocaleString:"Party Name" Local : Field : PQRPartySalesMan: Set as: $$LocaleString:"Contact Name" Local : Field : PQRPartyVchType : Set as: $$LocaleString:"Vch Type" Local : Field : PQRPartyAmount : Set as: $$LocaleString:"Amount" Border : Flush Totals [Line: PQRBody] FieldQRSno, PQRPartyDate,PQRPartyVchNo,PQRPartyName,PQRPartySalesMan,PQRPartyVchType RightFieldQRPartyAmount Border :Thin Bottom [FieldQRSno] Set as : $$Line Width : 1.5 cm Align : Center Border : Thin Left Right [Field: PQRPartyDate] Set as : $Date Width : 10% Screen Align : Right ;Style : Tiny Border : Thin Left [Field: PQRPartyVchNo] Set as : $VoucherNumber Width : 10% Screen Align : Center ;Style : Tiny Border : Thin Left [Field: PQRPartyName] Use : Name Field Set as : $PartyLedgerName Border : Thin Left Width : 20% Screen Align : Left ;Style : Tiny Variable: LedgerName Display : Ledger Vouchers [Field: PQRPartySalesMan] Use :Name Field Set as : $$String:$MMSalesmanName Border : Thin Left Width : 20% Screen Align : Left ;Style : Tiny ;Key : Create SalesmanName [Field: PQRPartyVchType] Set as : $VoucherTypeName Border : Thin Left Width : 15% Screen Align : Left ;Style : Tiny [Field: PQRPartyAmount] Use : Amount Forex Field Set as : $Amount Border : Thin Left Width : 15% Screen Align : Right ;Style : Tiny Format : "No Zero,DrCr,Symbol," + ##ShowForex [Line: PQRBody Total] UseQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : PQRSno : Set as: "" Local : Field : PQRPartyDate : Set as: "" Local : Field : PQRPartyVchNo : Set as: "" Local : Field : PQRPartyName : Set as: "TOTAL" Local : Field : PQRPartyName : Align : Centre Local : Field : PQRPartySalesMan: Set as: "" Local : Field : PQRPartyVchType : Set as: "" Local : Field : PQRPartyAmount : Set as: $$TotalQRPartyAmount Border : Flush Totals ;============================== Filter =================================== [Button:SalesmanFilter] Key : Alt+S Action : Alter: SalesmanFilter Title : Contact Name [Report:SalesmanFilter] Form : SalesmanFilter [Form:SalesmanFilter] Part : SalesmanFilter No Confirmation : Yes [Part:SalesmanFilter] Line : SalesmanFilter [Line:SalesmanFilter] Field : Medium Prompt,SalesmanFilter Local : Field : Medium Prompt : Set as : "Select Contact Name: " [Field:SalesmanFilter] Table : ContactNameCollection,EndOfList ShowTable : Always Use : Name Field Width : 20 Border : Thin Box Variable : vSalesManName Modifies : vSalesManName ; Variable : PQRPartySalesman ; Modifies : PQRPartySalesman ;[Collection: ContactNameCollection] ; ListName : "Raju" ;===================================== Collections =================================== [Collection: PQRSalesManVouchersColl] Type : Voucher Fetch : Date, VoucherNumber, VoucherTypeName,LedgerName,PartyLedgerName,VCHSalesmanName, LedgerEntries.* Filter : PQRSaleManVouchers , SalesManFilter [System:UDF] EnableSalesman : Logical : 1000 Commission : Number : 1001 [Variable:vSalesManName] Type : String ;[Variable:SalesManChqVar] ;Type : String [System:Variable] vSalesManName : "" ;SalesManChqVar : "" [System: Formula] PQRSaleManVouchers: $$IsSales:$VoucherTypeName OR $$IsCreditNote:$VoucherTypeName SalesManFilter : $VCHSalesmanName = ##vSalesManName Or $$IsSysName:##vSalesManName
Thank you very much...its working.........and one thing after filter i showing that voucher press enter its showing all voucher; i want to only see that voucher which i have filtered
; Remove This Variable in Field & Display Option [Field: PQRPartyName] Variable: LedgerName Display : Ledger Vouchers Add : Option In Body Line [Line: PQRBody] Option : AlterVchOnEnter : Yes
One more Query....please solve this....Value not fetch..... Code: [Report: SmReport] Use : DSP Template Form : PQRReport Title : "Quotation Report" Set : SVFromDate : $$MonthStart:##SVCurrentDate Set : SVToDate : $$MonthEnd:##SVCurrentDate Variable : vSalesManName : String Variables : ExplodeFlag, IsForexReport Variable : DSPShowMonthly, DSPHasMultiLevel Variable : IsMultiPage, InNewPages, ShowBillType, IsGrpBillReport Set : vSalesManName : "" [Form: PQRReport] Use : DSP Template Parts : PQRReport Height : 100% screen Width : 100% screen Delete : Buttons: ExplodeFlag Background: @@SV_RELEASEDLEAFGREEN_PL; Very Light Sea Green Bottom Toolbar Buttons : BottomToolBarBtn1, BottomToolBarBtn6, BottomToolBarBtn7, BottomToolBarBtn8, BottomToolBarBtn9, BottomToolBarBtn10, BottomToolBarBtn11, BottomToolBarBtn12, Add: Button: Salesmanfilter [Part: PQRReport] Lines:PQRTitile,PQRBody BottomLines : PQRBody Total Repeat : PQRBody :pQRSalesManVouchersColl Scroll : Vertical Total :PQRPartyAmount [Line: PQRTitile] Use:PQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : Default : set as : $$LocaleString:"S.No." Local : Field : PQRPartyDate : Set as: $$LocaleString:"Date" Local : Field : PQRPartyVchNo : Set as: $$LocaleString:"Quot No." Local : Field : PQRPartyName : Set as: $$LocaleString:"Party Name" Local : Field : PQRPartySalesMan: Set as: $$LocaleString:"Contact Name" Local : Field : PQRPartyVchType : Set as: $$LocaleString:"Vch Type" Local : Field : PQRPartyAmount : Set as: $$LocaleString:"Amount" Border : Flush Totals [Line: PQRBody] Field:PQRSno, PQRPartyDate,PQRPartyVchNo,PQRPartyName,PQRPartySalesMan,PQRPartyVchType,DSP VchMasterIDNo RightField:PQRPartyAmount Option : AlterVchOnEnter : Yes Explode : MyExplodPart : ($$KeyExplode OR ##ExplodeFlag) [Part : MyExplodPart] Lines : JlLedger Bills Title, JlLedger Bills,ZJlEmptyLine Repeat : JlLedger Bills : Ledger Bills Scroll : Vertical Vertical : Yes [Line : ZJlEmptyLine] Fields : Info Field Local : Field : Info Field : Info : "" [Line : JlLedger Bills Title] Line : JlLedger Bills Title1 [Line : JlLedger Bills Title1] LeftFields : JLITEMTitle, JLQTYTitle, JLRATETitle, JLAmountTitle Border : Column Titles Local : Field : JLITEMTitle : Info : "JOB NAME"+$$NewLine Local : Field : JLITEMTitle: Line : 0 Local : Field : JLQTYTitle : Info : "QTY"+$$NewLine Local : Field : JLQTYTitle: Line : 0 Local : Field : JLRATETitle : Info : "RATE"+$$NewLine Local : Field : JLRATETitle: Line : 0 Local : Field : JLAmountTitle : Info : "AMOUNT"+$$NewLine Local : Field : JLAmountTitle: Line : 0 [Field : JLITEMTitle] Use: Short Name Field Set as: "JOB NAME" Style: Small bold FullWidth : Yes Align: Left Border : Thin Left BackGround : Leaf Green [Field : JLQTYTitle] Use: Short Name Field Set as: "QTY" Style: Small bold Width: 10 Align: Left Border : Thin Left BackGround : Leaf Green [Field : JLRATETitle] Use: Short Name Field Set as: "RATE" Style: Small bold Width: 10 Align: Left Border : Thin Left BackGround : Leaf Green [Field : JLAmountTitle] Use: Short Name Field Set as: "AMOUNT" Style: Small bold Width: 12 Align: Left Border : Thin Left BackGround : Leaf Green [Line : JlLedger Bills] LeftFields: JLITEM, JLQTY, JLRATE, JLAmount [Field : JLITEM] Use: Short Name Field Set as: $StockItemName Style: Small FullWidth : Yes Align: Left [Field : JLQTY] Use: Short Name Field Set as:$BilledQty Style: Small Width: 10 Align: Left [Field : JLRATE] Use : Rate Price Field Set as: $Rate Style: Small Width: 10 Align: Left [Field : JLAmount] Use : AmountField Set as:$Amount Style: Small Width: 12 Align: Left [Field:PQRSno] Set as : $$Line Width : 1.5 cm Align : Center [Field: PQRPartyDate] Set as : $Date Width : 10% Screen Align : Right ;Style : Tiny [Field: PQRPartyVchNo] Set as : $VoucherNumber Width : 10% Screen Align : Center ;Style : Tiny [Field: PQRPartyName] Use : Name Field Set as : $PartyLedgerName Width : 20% Screen Align : Left ;Style : Tiny [Field: PQRPartySalesMan] Use :Name Field Set as : $$String:$MMSalesmanName Width : 20% Screen Align : Left ;Style : Tiny ;Key : Create SalesmanName [Field: PQRPartyVchType] Set as : $VoucherTypeName Width : 15% Screen Align : Left ;Style : Tiny [Field: PQRPartyAmount] Use : Amount Forex Field Set as : $Amount Width : 15% Screen Align : Right ;Style : Tiny Format : "No Zero,DrCr,Symbol," + ##ShowForex [Line: PQRBody Total] Use:PQRBody Local : Field : Default : Type : String Local : Field : Default : Style : Tiny Bold Local : Field : Default : Align : Centre Local : Field : PQRSno : Set as: "" Local : Field : PQRPartyDate : Set as: "" Local : Field : PQRPartyVchNo : Set as: "" Local : Field : PQRPartyName : Set as: "TOTAL" Local : Field : PQRPartyName : Align : Centre Local : Field : PQRPartySalesMan: Set as: "" Local : Field : PQRPartyVchType : Set as: "" Local : Field : PQRPartyAmount : Set as: $$Total:PQRPartyAmount Border : Flush Totals ;============================== Filter =================================== [Button:SalesmanFilter] Key : Alt+S Action : Alter: SalesmanFilter Title : Contact Name [Report:SalesmanFilter] Form : SalesmanFilter [Form:SalesmanFilter] Part : SalesmanFilter No Confirmation : Yes [Part:SalesmanFilter] Line : SalesmanFilter [Line:SalesmanFilter] Field : Medium Prompt,SalesmanFilter Option : alter on enter Local : Field : Medium Prompt : Set as : "Select Contact Name: " [Field:SalesmanFilter] Table : ContactNameCollection,EndOfList ShowTable : Always Use : Name Field Width : 20 Border : Thin Box Variable : vSalesManName Modifies : vSalesManName ; Variable : PQRPartySalesman ; Modifies : PQRPartySalesman ;[Collection: ContactNameCollection] ; ListName : "" ;===================================== Collections =================================== [Collection: PQRSalesManVouchersColl] Type : Voucher Fetch : Date, VoucherNumber, VoucherTypeName,LedgerName,PartyLedgerName,MMSalesmanName, LedgerEntries.* Filter : PQRSaleManVouchers , SalesManFilter [System:UDF] EnableSalesman : Logical : 1000 Commission : Number : 1001 [Variable:vSalesManName] Type : String ;[Variable:SalesManChqVar] ;Type : String [System:Variable] vSalesManName : "" ;SalesManChqVar : "" [System: Formula] PQRSaleManVouchers: $$IsSales:$VoucherTypeName OR $$IsCreditNote:$VoucherTypeName SalesManFilter : $MMSalesmanName = ##vSalesManName Or $$IsSysName:##vSalesManName
[Part : MyExplodPart] Lines : JlLedger Bills Title, JlLedger Bills,ZJlEmptyLine Repeat : JlLedger Bills : Inventory Entries Scroll : Vertical Vertical : Yes [Collection: PQRSalesManVouchersColl] Type : Voucher Fetch : Date, VoucherNumber, VoucherTypeName,LedgerName,PartyLedgerName,MMSalesmanName, LedgerEntries.*, InventoryEntries.* Filter : PQRSaleManVouchers , SalesManFilter
I create but its not showing...... [Line : JlLedger Bills] LeftFields: JLITEM, JLQTY, JLRATE, JLAmount Explode : DESCExplod [Part : DESCExplod] Lines : JLDescription Repeat : JLDescription : BasicUserDescription Scroll : Vertical Vertical : Yes [Field : JLDescription] Use: Short Name Field Set as: $BasicUserDescription
[Collection: PQRSalesManVouchersColl] Type : Voucher Fetch : Date, VoucherNumber, VoucherTypeName,LedgerName,PartyLedgerName,MMSalesmanName, LedgerEntries.*, InventoryEntries.*, InventoryEntries.BasicUserDescription.* Filter : PQRSaleManVouchers , SalesManFilter