Skip to main content

Notifications

Dynamics 365 Community / Forums / Finance forum / ID getting clear when ...
Finance forum
Answered

ID getting clear when i refresh the report page .

editSubscribe (1) ShareShare
ReportReport
Posted on by 1,416
I have made the report in which records to filter have production id in filter , when i refresh the page the field in records to filter get clear , it is not holding the value , can anyone please suggest me how can i hold previous filter value if the form is refresh .
 
 
thanks,
Regards,
Dinesh
  • Layan Jwei Profile Picture
    Layan Jwei 3,079 Super User on at
    ID getting clear when i refresh the report page .
    Hi Dinesh,
     
    I'm glad your issue is fixed. Your answer will be verified
     
    Looking at your first reply, I thought the issue is that your drop down is not returning any value (as your first reply is different than the question itself). However, if your issue is that the filter value disappears after you open then form again, then yes sysLastValue is the answer
  • Verified answer
    Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
    my issue resolved , i just passed true in to this , getting required output
        ssrsController.parmLoadFromSysLastValue(true);
    thanks ,
    regards,
    Dinesh
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
    yes the leagal entity is having data , i am resharing the controller code 
    class DTCustomizeProductionDetailsController extends SrsReportRunController
    {
        ProdTable                 dataTableOne;
    
        protected void PrePromptModifyContract()
        {
            super();
            if ( this.parmArgs() && this.parmArgs().record())
            {
                dataTableOne = this.parmArgs().record();
            }
        }
    
        static void main(Args args)
        {
            ProdTable   						   dataTableOne;
            DTProjectContractReportController	   ssrsController;
            datatableone   = args.record() as  ProdTable;
            ssrsController = new  DTProjectContractReportController();
            ssrsController.parmArgs(args);
    
            ssrsController.parmReportName(ssrsReportStr(DTCustomizedProductionOrderDetails,PrecisionDesign1));
            ssrsController.parmShowDialog(true);
            ssrsController.parmLoadFromSysLastValue(false);
            ssrsController.startOperation();
        }
    
    }
     
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
     
     
    can you please answer this one , i am having issue in clearing the value when i use backspace, the only option is to deselect values to clear . how can i clear the values with using backspace .
  • Layan Jwei Profile Picture
    Layan Jwei 3,079 Super User on at
    ID getting clear when i refresh the report page .
    Hi Dinesh,

    Please check my previous reply
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
    i have added range but the value is blank 
  • Layan Jwei Profile Picture
    Layan Jwei 3,079 Super User on at
    ID getting clear when i refresh the report page .
    Hi Dinesh,

    Did you make sure you have data in this table in the legal entity u are working with?

    ​​​​​​​and are u sure you shared the correct controller code? because u have two variables with "dataTableOne" name?

    Thanks,
    ​​​​​​​Layan Jweihan

  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
    here is my controller class 
    class DTCustomizeProductionDetailsController extends SrsReportRunController
    {
        PurchTable                 dataTableOne;
    
        protected void PrePromptModifyContract()
        {
            super();
            if ( this.parmArgs() && this.parmArgs().record())
            {
                dataTableOne = this.parmArgs().record();
            }
        }
    
        static void main(Args args)
        {
            PurchTable  						   dataTableOne;
            DTProjectContractReportController	   ssrsController;
            datatableone   = args.record() as  PurchTable;
            ssrsController = new  DTProjectContractReportController();
            ssrsController.parmArgs(args);
    
            ssrsController.parmReportName(ssrsReportStr(DTCustomizedProductionOrderDetails,PrecisionDesign1));
            ssrsController.parmShowDialog(true);
            ssrsController.parmLoadFromSysLastValue(false);
            ssrsController.startOperation();
        }
    
    }
     
  • Dineshkarlekar Profile Picture
    Dineshkarlekar 1,416 on at
    ID getting clear when i refresh the report page .
    Iam getting this query in info 
     
    SELECT ActivityNumber, BackorderStatus, BOMDate, BOMId, CalcDate, CheckRoute, CollectRefLevel, CollectRefProdId, createdBy,
    createdDateTime, CurrencyCode_RU, dataAreaId, DefaultDimension, Density, Depth, DlvDate, DlvTime, DTSalesId, DTSector, 
    FinishedDate, GanttColorId, Height, InventDimId, InventRefId, InventRefTransId, InventRefType, InventTransId, ItemId,
    LatestSchedDate, LatestSchedDirection, LatestSchedTime, Name, PackedExtensions, Partition, PdsCWBatchEst, PdsCWBatchSched,
    PdsCWBatchSize, PdsCWBatchStup, PdsCWRemainInventPhysical, PlanningPriority, PmfBulkOrd, PmfCoByVarAllow, PmfConsOrdId,
    PmfReworkBatch, PmfTotalCostAllocation, PmfYieldPct, PriceGroup_RU, ProdGroupId, ProdId, ProdLocked, ProdOrigId,
    ProdPoolId, ProdPostingType, ProdPrio, ProdStatus, ProdType, ProdWHSReleasePolicy, ProfitSet, ProjCategoryId, 
    ProjCostAmount, ProjCostPrice, ProjId, ProjLinePropertyId, ProjLinkedToOrder, ProjPostingType, ProjSalesCurrencyId, 
    ProjSalesPrice, ProjSalesUnitId, ProjTaxGroupId, ProjTaxItemGroupId, ProjTransId, PropertyId, QtyCalc, QtySched,
    QtyStUp, RealDate, RecId, recVersion, RefLookUp, ReleasedDate, RemainInventPhysical, ReqPlanIdSched, ReqPOId,
    Reservation, RouteId, RouteJobs, SchedDate, SchedEnd, SchedFromTime, SchedStart, SchedStatus, SchedToTime, 
    SkipCreateBOMLines, SkipCreateRouteOperations, StUpDate, SysRowVersionNumber, Width FROM ProdTable
     
  • Layan Jwei Profile Picture
    Layan Jwei 3,079 Super User on at
    ID getting clear when i refresh the report page .
    Hi Dinesh,

    can you give us more data about your query?
     
    I can see it only contains one table. However, it seems you added ProdId as a range. So did u fill a value inside this range? if yes, then what is it? as this might be the cause of the issue. 

    or did you just add it without fixing a range value? then this would mean your query is equivalent to this:
    "SELECT * FROM ProdTable" so in this case, make sure you have data in this table in the legal entity u are working with

    Also do you have any code in your controller that affects the query range?

    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

Helpful resources

Quick Links

Take the Community feedback survey!

Answer this brief 15-question survey about your Community experience…

Demystifying Copilot: Service Edition with Sundar Raghavan

Sundar answers more questions about Copilot for Service...

Dynamics 365 Business Central vs Finance and SCM

Take a look at the key differences between Business Central and…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,375 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 223,308 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans