Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

specifies which rows can be removed when reloading the grid

Class

Grid Initialization

Property

gd.query.keepOnRefresh

Formal specification

gd.query.keepOnRefresh = All | Modified | None

Required

no

Default

Modified

Version

1.4

Comment

As explained in Grid reload, rows in a grid can be refreshed by either clicking on the reload toolbar button, or by modifying a value of a dependent customfield. 
The grid will then reload the data as detailed in the gd.query
The parameter gd.query.keepOnRefresh allows to specify what should happen with the existing rows. 

  • gd.query.keepOnRefresh = All 
    All rows are kept, no data is removed 
  • gd.query.keepOnRefresh = Modified 
    Only the modified rows are kept. A row is considered modified if a user changed some of its values during the current or previous edit.
    The rows which have not been modified will be removed. This is the default setting. 
  • gd.query.keepOnRefresh = None 
    All rows are removed before reloading.

Example

gd.query=select vendor,sandwichname,price from sandwichprices where vendor = \{0} 
gd.query.parameters=customfield:10150 
gd.query.ds=gridds 
gd.query.keepOnRefresh=None

Reference

 Grid reload 
issue values 
gd.query 
gd.query.ds 
gd.query.parameters 
gd.query.columns 
gd.query.keepOnRefresh

  • No labels