Dojo

role based column access in DojoGrid

Hi there,

I know this is not supported by Wavemaker or DojoGrid but maybe someone already worked on this: is it somehow possible to configure columns of a DojoGrid that only certain roles are able to see the data (or even better: that this column data is not even transfered to the client)???

Maybe someone worked in a similar direction or knows something more about extending DojoGrid.

Tie together JavaService with DojoGrid (JavaService result as data for grid)

Hi,

I have a simple problem but don't seem to get passed it. How do I tie together a JavaService with a DojoGrid? I want to replace the query of the DojoGrid with my own. I created a JavaService:


public List getAllGridData(int userID, int projectID){
List gridData = null;
My_db service = (My_db) RuntimeAccess.getInstance().getService(My_db.class);
service.begin();
Session session = service.getDataServiceManager().getSession();

String sQuery = "select * from Mydb_griddata where projectid = " + projectID;

Date field in DojoGrid always default to 01/01/1970 (even when empty)

Hi,

I have a Dojogrid and all date fields in that table default to the 01/01/1970 (01.01.1970 in my case) whenever I click on an empty datefield. The date selector then starts at the 01/01/1970. Additionally, when I delete a date with backspace in the field, it writes 01/01/1970 in the field and does not delete it.

How can I fix this? Please help!

Using custom sourceData in DojoGrid / manipulating DojoGrid queries??!

Hi,

I'm facing huge problems and hope someone can help me here.

Here's essentially what I would like to do:

Queries and Filters

I have a dojoGrid populated by a serviceVar retrieving db data through a query that hits several tables

If i need to include a filter for that grid, it seems i need to use a liveVar instead of a serviceVar. So i bound the grid to the liveVar, the liveVar to the serviceVar, and typed the liveVar to my left table.

Two issues:
1) the query retrieves specific data based on WHERE clause and app.variables, however the liveVar now returns all the records in the table instead of a subset of the query

How secure are using filters in dojogrid?

Hi,

I was wondering whether one can override any filtering one does on the dojogrid on the client side. Reside SQL queries you configure within Wavemaker studio on the client-side java script engine or is this compiled to server-side java class files?

Does anyone has any idea? Thanks!

using SQL view ("real" database view)

Hi,

since I am running in some limitations in Wavemaker I wanted to make the underlying database "easier" for Wavemaker. Hence, I created a view using SQL like this for example:

CREATE VIEW dbo.testview
AS
SELECT *
FROM dbo.mytable

I then imported the database back to Wavemaker. But Wavemaker then makes a composite primary key of ALL fields in the view and puts them under a new field "id". When I use this grid as a database widget, the dojo grid just shows the (empty) id field and nothing else.

Another Upgrade to 6.5.3 Problem

In converting my WM6.4.6 projects to WM6.5.3 I am encountering a problem on several projects where the Dojo Grids will not appear on the deployed application. (i.e. deployed on localhost for testing). The grids appear in studio and even show data. The log shows no problems for one application and "invalid request; missing method or id:" errors in the other.
In a previous post I resolved a problem by removing spring jars from my lib folders. There may be a similar problem but I don't know what the jars are for the Dojo Grid.

iPad can't edit DojoGrid rows

Please forgive me if this is already covered somewhere. I haven't been able find a solution if it already exists.

The problem I'm experiencing is the inability for the DojoGrid to be edited on an iPad. Scrolling works well enough (I've seen that used to be an issue), and all the other expected actions seem to function correctly, but when comparing the Desktop app in Chrome to the iPad, the iPad just refuses to show the editable view of the cell.

I'm unable to duplicate this on my PC, so I haven't been able to track down the source of this.

Any clues?

RaIrata's picture

Rich Text Editor LocalImage plugin

Hello,
i'm studying a way to allow users insert images on a Rich Text Editor.
I saw that LocalImage dojox plugin is based on a php service.
Is it possible to use the File Upload java class of File Uploader widget instead?
Or i have to write a java service that behave like that php service?
Anyone had never tried something in this regard?
Thanks.

Nested sorting in dojo grid (sorting by two columns)

Hi,

I need to sort my dojo grid by TWO columns. Has anybody done that or poked around in that direction??
I think I need to *somehow* make my dojo grid of the type EnhancedGrid (see http://dojotoolkit.org/reference-guide/1.7/dojox/grid/EnhancedGrid/plugins/Neste...) in the source. But I don't know where the entry point for such a hack might be.
Could someone point me in the right direction? Thank you so much!

Unresponsive script when selecting projects

Hi,

I daily make a copy of my project I am working on and have 39 projects in the wavemaker project folder. Switching in the designer to another project now ALWAYS results in a browser warning of an unresponsive script (see screenshot). It seems there's a lot of javascript already loaded without having a project selected.
The only solution to this is to restart the browser.

Let me know if I am doing something wrong here. Thx!

update dojo grid according to filter after user input

Hi,

I have a dojo grid which I filter through some columns. Now when the user changes data in a filtered column and it does not fit the filter anymore I would like the grid to be updated.
Example:
Column1 is filtered by "a". Now I change the "a" in a cell in Column1 to "b" -> the filter should be applied again so that row is hidden.

The live variable is set to autoUpdate. Additionaly I tried to bind it to the onSuccess event, but this did not work. I also added a button with the following click event:


btnRefreshGridClick: function(inSender) {

RaIrata's picture

Adding table editing capability to Rich Text Editor

Hi,
I'd like to add TablePlugin to Rich Text editor to allow table editing.
I read Custom Widget Wiki page and I see that TablePlugin is shipped with wavemaker, but I don't understand how to try to enable it.
Any suggestion is very appreciated.
Best regards.

filter dojogrid by related table and id selected by user

Hi,

sorry for the messy subject line.

Here's what I want to do:
I have two tables: Project and Request. In my wavemaker application I am displaying a dojogrid with the project table on the first tab and on the second tab a dojogrid with the request table.
The request grid should be filtered by the projectid of the selected line in the project grid.

I have two problems here:
1.) How do I get a WHERE-clause in the dojogrid-query of the request grid? Is it posible to edit the SQL used by the dojogrid??