| View previous topic :: View next topic |
| Author |
Message |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Mon Jul 05, 2010 8:24 am Post subject: V5.00l issues and workarounds |
|
|
There is a bug in the rnsprototype.js javascript file in the /rui/scripts folder. The $p function should look like this:
| Code: | $p = function(id) {
var res=null;
try {
if (typeof id=='object') {
res = id
}
else {
if (id && id.length>0) {
var jq=jQuery('#'+id);
if (jq.length>=0)
res=jq[0];
}
}
}
catch(e) {
// Failed to find object
}
return res;
} |
The bug is noticed in legacy data grids when seen in a popup in IE. Any interaction with the user produces an annoying alert and the grid reverts to the neutral theme. |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Tue Jul 06, 2010 1:17 pm Post subject: Bug in XAPROMPT regarding inline sections |
|
|
The last call to CGI_ExecuteScript in PR_StartInlineSection() (in XAPROMPT) should look like this:
| Code: | 0107.64 ','+widgetOptions+'}');
0107.65 endif;
0107.66 CGI_ExecuteScript('$("#inlineWrapper'+%trim(%editc(lId:'Z'))+'")' +
0107.67 '.rnswidget('+lWidgetOptions+')'+
0107.68 '.addClass("inline");' +
0107.69 '$("#inlineOuter'+%trim(%editc(lId:'Z'))+'")' +
0107.70 '.css("width","")' +
0107.71 '.removeClass("inline");'
0107.72 );
0107.73 endif;
0107.74
0107.75 /end-free
0107.76 P e |
Last edited by Kevin on Thu Jul 08, 2010 10:42 am; edited 2 times in total |
|
| Back to top |
|
 |
Greg
Joined: 10 Apr 2007 Posts: 27
|
Posted: Tue Jul 06, 2010 1:49 pm Post subject: |
|
|
| Tried to make the change for CGI_ExecuteScript. I needed to make it $j( in both places instead of $( Then it worked fine. |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Tue Jul 06, 2010 1:52 pm Post subject: |
|
|
| Yes - thanks Greg. Forgot to mention that prior to 5.00l it would be $j rather than $ |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Thu Jul 08, 2010 10:20 am Post subject: XSJQGRID fails top compile during install |
|
|
A later version of XSJQGRID has found its way into version 5.00l download, which will not compile.
Attached to this post is the correct version. You should overwrite the code in RNS/QRPGLESRC (or RNSUPGRADE/QRPGLESRC if you are doing an upgrade), then restart the install (or upgrade process).
If you just removed the source member and processed the install, then just put the source into RNS/QRPGLESRC then set your library list thus:
| Code: | QTEMP
RNSWORK
RNSDTA
RNS
RUI |
Then do this:
| Code: | | BLDRNS MBR(XSJQGRID) |
|
|
| Back to top |
|
 |
dod11
Joined: 07 Jul 2010 Posts: 7
|
Posted: Thu Jul 08, 2010 5:09 pm Post subject: QPGMR authority issue near end of install |
|
|
Our system defaults to *PUBLIC *EXCLUDE and my user profile is not under the QPGMR group profile. This results in the following errors near the end of the install process:
User QPGMR not authorized to library RNSWORK.
User QPGMR not authorized to library RNSDTA.
User QPGMR not authorized to library RNA.
Errors occurred on SBMJOB command.
Activation group RNS cannot be deleted.
Errors occurred on SBMJOB command.
Program XSMANAGECL has terminated because of error CPF1338.
Activation group RNS deleted.
Program XSMANAGECL has terminated because of error CPF1338.
Program RNSSTART has terminated because of error CPF9898.
Activation group RNS not found. |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Thu Jul 08, 2010 6:25 pm Post subject: |
|
|
I am afraid it is a pre-requisite to run the install under a user profile with qsecofr privileges. It should state that in the accompanying PDF install instructions.
However, you could just modify the INSTALL thus:
| Code: | 0203.00
0204.00 /* Make sure QPGMR is authorised to RNS libraries and GPL objects-------- */
0205.00 grtobjaut obj(rns*) objtype(*lib) user(qpgmr) aut(*all)
0206.00 monmsg cpf0000
0207.00 grtobjaut obj(qgpl/rns*) objtype(*all) user(qpgmr) aut(*all)
0208.00 monmsg cpf0000
0209.00
0210.00 /* Start Apache server--------------------------------------------------- */
blah blah |
or do it manually after the install then run RNSSTARTUP. |
|
| Back to top |
|
 |
dod11
Joined: 07 Jul 2010 Posts: 7
|
Posted: Fri Jul 09, 2010 8:31 am Post subject: |
|
|
Profile being used is *SECOFR class with full set of special authorities. I believe the install script must be changed regardless.  |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Fri Jul 09, 2010 8:52 am Post subject: |
|
|
| Yes it has. See previous post. |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Tue Jul 13, 2010 12:41 pm Post subject: |
|
|
From V6 of the OS onwards there appears to be a problem with the install with regard to a call to a program called XACRTENV. The failure looks something like this in the job log:
| Code: |
*NONE Command 13/07/10 11:55:10.782403 QCADRV QSYS 03C6 XACRTENV RNS *STMT
To module . . . . . . . . . : XACRTENV
To procedure . . . . . . . : XACRTENV
Statement . . . . . . . . . : 950
Message . . . . : 950 - CHKOBJ OBJ(X'D9D5E2C4E3C100') OBJTYPE(*LIB)
CPD0078 Diagnostic 30 13/07/10 11:55:10.782433 QCAFLD QSYS 12E6 XACRTENV RNS *STMT
To module . . . . . . . . . : XACRTENV
To procedure . . . . . . . : XACRTENV
Statement . . . . . . . . . : 950
Message . . . . : Value 'RNSDTA ' for parameter OBJ not a valid name.
Cause . . . . . : Value 'RNSDTA ' contains characters that are not valid
in a name or is a single value that was specified as part of a qualifier. A
name must begin with an alphabetic character followed by alphanumeric
characters, or if the value is a string of characters, it must be enclosed
in quotation marks. Recovery . . . : Correct the name or specify the
single value alone, then try the command again. More information on names
can be found in the Information Center.
|
Although we don't have a V6 or a V7 box to test on, we believe this may be due to the fact that the declaration of the &suffx field in both XACRTENV and XACPYENV in RNS/QCLLESRC does not specify a length.
It looks like this
when it should look like this
So fix is to change the declaration on &suffx in both programs then set your library list thus:
| Code: | QTEMP
RNSWORK
RNSDTA
RUI
RNS
QGPL |
Then do this:
| Code: | | BLDRNS MBR(XACPYENV) |
And
| Code: | | BLDRNS MBR(XACRTENV) |
Then try rerunning the install as per the instructions (without restoring the library obviously) |
|
| Back to top |
|
 |
amc
Joined: 09 Jul 2010 Posts: 1 Location: Adelaide, SA, Australia
|
Posted: Thu Jul 15, 2010 8:12 am Post subject: Re: Bug in XAPROMPT regarding inline sections |
|
|
| Kevin wrote: | The last call to CGI_ExecuteScript in PR_StartInlineSection() (in XAPROMPT) should look like this:
| Code: | 0107.64 ','+widgetOptions+'}');
0107.65 endif;
0107.66 CGI_ExecuteScript('$("#inlineWrapper'+%trim(%editc(lId:'Z'))+'")' +
0107.67 '.rnswidget('+lWidgetOptions+')'+
0107.68 '.addClass("inline");' +
0107.69 '$("#inlineOuter'+%trim(%editc(lId:'Z'))+'")' +
0107.70 '.css("width","")' +
0107.71 '.removeClass("inline");'
0107.72 );
0107.73 endif;
0107.74
0107.75 /end-free
0107.76 P e |
|
Kevin,
after this change is made, what compiles/build needs needs to be run to implement it ?
regards
Tony C |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Thu Jul 15, 2010 9:33 am Post subject: Re: Bug in XAPROMPT regarding inline sections |
|
|
| amc wrote: | | Kevin wrote: | The last call to CGI_ExecuteScript in PR_StartInlineSection() (in XAPROMPT) should look like this:
| Code: | 0107.64 ','+widgetOptions+'}');
0107.65 endif;
0107.66 CGI_ExecuteScript('$("#inlineWrapper'+%trim(%editc(lId:'Z'))+'")' +
0107.67 '.rnswidget('+lWidgetOptions+')'+
0107.68 '.addClass("inline");' +
0107.69 '$("#inlineOuter'+%trim(%editc(lId:'Z'))+'")' +
0107.70 '.css("width","")' +
0107.71 '.removeClass("inline");'
0107.72 );
0107.73 endif;
0107.74
0107.75 /end-free
0107.76 P e |
|
Kevin,
after this change is made, what compiles/build needs needs to be run to implement it ?
regards
Tony C |
Yes, set you library list thus:
| Code: | QTEMP
RNSWORK
RNSDTA
RUI
RNS
QGPL |
then do this
| Code: | | BLDRNS MBR(XAPROMPT) |
Then, do make sure all your servers pick up the change:
Last edited by Kevin on Wed Jul 28, 2010 5:06 pm; edited 1 time in total |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Wed Jul 28, 2010 5:01 pm Post subject: The old Drag and Drop demo doesn't work |
|
|
Drag and drop demo doesn't work.
Two javascript files need replacing in your /rui/htdocs/scripts folder.
dnd.js and rico.js.
Please see attached |
|
| Back to top |
|
 |
Kevin

Joined: 17 Jan 2005 Posts: 1187
|
Posted: Tue Aug 17, 2010 10:39 am Post subject: jqGrid search column option does not work correctly |
|
|
NOTE: This post is only pertinent if your XAJQGRID service program contains a procedure called JGD_SetColumnOption and you are on version 5.00 (or sub version thereof). This has been fixed in 5.01 onwards.
When setting a column option to JGD_TRUE or JGD_FALSE the result is always treated as true regardless.
There is a small fix required to to JGD_SetColumnOption procedure around line 629.00.
This
| Code: |
lColModel += '"'+option+'":'+
'"'+value+'"';
|
should be
| Code: |
if value=JGD_TRUE or value=JGD_FALSE;
lColModel += '"'+option+'":'+value;
else;
lColModel += '"'+option+'":'+
'"'+value+'"';
endif;
|
Last edited by Kevin on Tue Aug 17, 2010 1:18 pm; edited 1 time in total |
|
| Back to top |
|
 |
bmerlino
Joined: 16 Aug 2010 Posts: 9
|
Posted: Tue Aug 17, 2010 12:47 pm Post subject: Re: The old Drag and Drop demo doesn't work |
|
|
| Kevin wrote: | Drag and drop demo doesn't work.
Two javascript files need replacing in your /rui/htdocs/scripts folder.
dnd.js and rico.js.
Please see attached |
Hi Kevin
I have replaced the two script file but the drag drop demo doesn't work , i get the message , request failed please retry
Thanks & Regards
Basilio |
|
| Back to top |
|
 |
|