1. EuGrid: EGW_CELL_DISABLED

Hi,

I am trying to disable a cell in a particular row depending on true / false
value in a sequence using the following code.

if params[1] = EGW_CELLFORMAT then
	if find(col_id, {3, 4}) then -- Amount / Percentage
		if col_id = 3 then -- Amount Column
			if currFormProp[1] then -- Amt required
				statmsg &= " (EGW_CELLFORMAT: Amt True)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_False)
			else -- Percentage required
				statmsg &= " (EGW_CELLFORMAT: Amt False)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_True)
			end if
		else -- Percentage Column
			if currFormProp[2] then -- % required
				statmsg &= " (EGW_CELLFORMAT: % True)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_False)
			else -- Percentage required
				statmsg &= " (EGW_CELLFORMAT: % False)"
void = EGW_SetCellProperty(EuGrid802, params[2], EGW_CELL_DISABLED,
EGW_True)
			end if
		end if
	end if
end if


But as the concerned cells get focus, instead of disabling only that cell, the
entire grid gets disabled.
When I move out of those cells, the grid gets enabled.

How do I make only that cell disabled on focus?

Regards,
Rad.

new topic     » topic index » view message » categorize

2. Re: EuGrid: EGW_CELL_DISABLED

The code looks right to me.  Can you post a small working example showing the
problem?  I should be able to help.

Jonas Temple
http://www.innovativesys.net

new topic     » goto parent     » topic index » view message » categorize

3. Re: EuGrid: EGW_CELL_DISABLED

Jonas Temple wrote:
> 
> The code looks right to me.  Can you post a small working example showing the
> problem?  I should be able to help.
> 
Hi Jonas,

I have sent you (jtemple at yhti.net) a test program EuGridTest.exw in which I
have duplicated the EuGrid part from my actual project.

There are 5 rows and 4 columns in the grid.
Third and Fourth columns are for Amount and percentage respectively.
Depending on the True/False values set for each row for these columns,
I want to accept only one of these 2 columns at a time.

Regards,
Rad.

new topic     » goto parent     » topic index » view message » categorize

4. Re: EuGrid: EGW_CELL_DISABLED

Rad,

Just checked my email and it's not there.  The email address you cited is
correct, however.

If you didn't get a bounce back could you try it again?

Jonas Temple
http://www.innovativesys.net

new topic     » goto parent     » topic index » view message » categorize

5. Re: EuGrid: EGW_CELL_DISABLED

Jonas Temple wrote:
> 
> Rad,
> 
> Just checked my email and it's not there.  The email address you cited is
> correct,
> however.
> 
> If you didn't get a bounce back could you try it again?
> 

Sending mail in plain text format. 
May be html format was rejected......
Though I didn't get bounce message.

Regards,
Rad.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu