Opened 9 years ago

Closed 9 years ago

#12529 closed defect (invalid)

[BUG] JsonRestStore + dojox.grid.EnhancedGrid + Printer generates invalid URL.

Reported by: ckspraggs Owned by: evan
Priority: high Milestone: 1.6.1
Component: DojoX Grid Version: 1.6.0
Keywords: Cc:
Blocked By: Blocking:

Description

Using grid.exportToHTML({cssFiles:test.css?}, function(str) { console.log(str) }); with JsonRestStore?, dojox.grid.EnhancedGrid?, and the Printer plugin generates a request to the following: http://{store_target}/undefined?sort(+name).

Grid declaration:

<table jsId="grid" id="profile-grid" dojoType="dojox.grid.EnhancedGrid" sortInfo="1"
	store="profileStore" class="data-grid" autoHeight="25" selectionMode="single"
	query="{entities:'team,server',user:<?=$this->resource('user')->getId();?>,game:<?=$this->resource('game')->getId();?>}"
	plugins="{filter:true,printer:true,pagination:true,exporter:true}">

Store declaration:

<div id="profile-store" jsId="profileStore" dojoType="dojox.data.JsonRestStore" target="/api/profiles"></div>

Change History (2)

comment:1 Changed 9 years ago by ckspraggs

Ignore. You must pass "fetchArgs" to achieve the same functionality.

comment:2 Changed 9 years ago by bill

Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.