ScriptCase 8 - Bugs

Some android devices (tablets in my case) are not recognized as mobile devices because of the preg_match() string in the index.php.

The string starts with: preg_match(’/(android|bb\d+|meego).+mobile|avantgo|…
It works if you change it to: preg_match(’/(android|bb\d+|meego).+mobile|android|avantgo|…

Even adding the word ‘tablet’ to the string makes it work correctly.

If some others experience similar problems, here is a workaround (onApplicationInit) to make at least the mobile menu work.


if(preg_match('/(?i)android|tablet|phone|phablet/',$_SERVER['HTTP_USER_AGENT']))
{
	sc_menu_force_mobile(true);
}

Setting up different toolbars for desktop and mobile version in a grid application have no effect, it seems to work on form and control though.
Also the Exit button (on mobile) always runs into a 404 error, you have to create a button with a direct link to the page/app you want to go. This is probably
related to the fact that the applications are running within a menu application (= iframe) on the desktop and in their own window on mobile devices.

jsb

hi jsb, in my case all working on mobile normally even the menu, only the single record form update button doesnt work on mobile, while the same works perfect on desktop. really irritating. tried 5 android devices and iphone… all the same. i have nothing complicated in this form is simple link from grid to update the record… is there workaround to update the data from mobile other than the update bottun of the mobile version?? i have some more data in the changelong thread v8.006 discussing John about the same issue. so far no luck overcome thos problem

I tried this update thing earlier today and check that the update was ok, the problem was the “update data” message that was not showing up correctly, can you test and check if the record is updating or not?

hi carlos, yes i don’t have that “data modified” message at all! on desktop works fine, a small processing ajax message then goes back sc_redir onAfterUpdate to the grid… but on mobile shows only Processing message for 2 seconds then nothing happens, no response at all, no message, no confirmation, no error, nothing! even tried to remove the sc_redir but nothing change on mobile… still the same

when i activate all the errors to show under application, i noticed something

in the header, first line is for the log… insert into log…etc

second one is select the table that these fields are belong to… select (*) from table… where id=111 - all ok

when clicking save (update) shows output like this:

insert into log table… all ok

second line, select (*) from table WHERE (id=0)

and this message stopps on screen of the mobile, while on desktop blinks when doing the update then is gone becasue the record is updated, but on mobile it keeps on screen because the update is not done!

adz1111 i think empty group by is used to start a grid that has group by rules defined, but you don’t want to use any one when the grid starts (not sure)

yes that is in the menu as well, noticed it since sc8 day 1 but didn’t consider it important as i went to themes, created a new one then removed all images that shows there, i don’t want them :slight_smile: although may look nice, i tried with CSS margins to align for menu but wasn’t coming correct, so removed them from the theme, simple text, without icons and cheers :smiley:

but should be considered by bugs team, menu icons alignment and css adjustment for them was smoother in sc7 i tried them, but in sc8 they are mess, icons are a way too close or high than a menu text/button… tried all possible CSS tricks, no use, icons don’t position correctly

yes that is in the menu as well as the page/tabs icons… i noticed it since sc8 day 1 but didn’t consider it important as i went to themes, created a new one then removed all images that shows there, i don’t want them :slight_smile: although may look nice, i tried with CSS margins to align for menu but wasn’t coming correct, so removed them from the theme, simple text, without icons and cheers :smiley:

but should be considered by bugs team, menu icons alignment and css adjustment for them was smoother in sc7 i tried them, but in sc8 they are mess, icons are a way too close or high than a menu text/button… tried all possible CSS tricks, no use, icons don’t position correctly

but VDPVince, for your last 2 image, that you can control from the field settings itself, set to horizontal = left and vertical = middle… for title, css object and input… all

Hi!
The problem is not the allignement but that the data is put on the end of ship data tab not on the patient tab the last image have the same error the yellow data are on the end of first tab
not on the more data tab o sc7 this problem is not present all block data function correctly

Text autocomplete not working on version 8.00.0006. Please take necessary initiative as early as possible.

Yeah - possibly

I will ask to the test manager to take a look at those 2 problems.

well, from your given images above, i don’t think there is something wrong other than alignment of the icons in tables, i talked about it above and it is similar to the menu issue, other horizontal fields alignment can be adjusted as mentioned earlier, don’t know if you are trying to deliver different message than i can’t understand it, try to make a screenshot comparison between sc7 and sc8 so we understand what is wrong you trying to tell us

correct, i created new field “text auto-complete” (not in the database, only in SC) pointed it to a table with “names” field but didn’t work like it was working before in previous version, however, the capture link “adding small search field to get data from that table” still work i think

fine job, i like this position :slight_smile:

Fatal error on security module

Hi,

I’ve found a bug on version 8.00.0006…I have an application with security module (group) generated. when i go to security > group/applications and then select a group, i will get an error :

“Fatal error: Call to a member function Execute() on a non-object in C:\NetMake\v8\wwwroot\scriptcase\app\eCampus\app_eCampusform_sec_groups_apps\app_eCampusform_sec_groups_apps_apl.php on line 450”

I’m beginning to think this is a bug because i’ve tried several steps to fix it(been on it for a day!):

  1. created new app and generate security module - error persist
  2. created new app to new database(oracle) - error persist
  3. created new app to new database(mysql) - error persist
  4. install on another server and my local pc - error persist
  5. had a project which was last compiled a few weeks back (before version 8.00.0006) and tried to run it WITHOUT any error. To verify, i recompile. – error persist
  6. manual update. (suggested by scriptcase support) - error persist
  7. created the project in a server running v7.1 and tested working flawlessly. proceed to copy and convert to the server with version 8.00.0006…error comes in the picture.

These are definitely red flags for bugs here and it’s been really frustrating as i’ve been on it for a whole day. This module is important because it allows access/limit application to groups.

If forum admins are reading this please,please and please forward to your developers and try my 7 trial situation i did. This is getting really frustrating.

Below is the attached screenshot :

sc error.PNG

psychocryo, go to your sec_form_sec_groups_apps onApplicationInt, remove the code (copy it somewhere first) and run, you will have it working

This is because it is failing to get the group description to show them for you while selecting the permissions for each application

scenario is: once you click on groups/apps it is supposed to give you the available groups > select one of them > go for permissions table… here it fails, what is happneing is: it can’t select it well, hence it is failing

If you removed that, it will work but once you select the group, then you will have the table to select permissions, but, without group in the header to tell you which group you are working on its permissions… i could live with that because i have only few groups and i pay attention to the one i select to modify permissions :slight_smile:

[QUOTE=itsme3;26444]psychocryo, go to your sec_form_sec_groups_apps onApplicationInt, remove the code (copy it somewhere first) and run, you will have it working

This is because it is failing to get the group description to show them for you while selecting the permissions for each application

scenario is: once you click on groups/apps it is supposed to give you the available groups > select one of them > go for permissions table… here it fails, what is happneing is: it can’t select it well, hence it is failing

If you removed that, it will work but once you select the group, then you will have the table to select permissions, but, without group in the header to tell you which group you are working on its permissions… i could live with that because i have only few groups and i pay attention to the one i select to modify permissions :)[/QUOTE]

Hi itsme3,

You sir are a lifesaver! i tried it and it worked. i did not think that this would be the issue because the error message was not user friendly at all. are you experiencing the same problem?
Im curious as to why the simple query fails. This is a bug right?

Thanks again man! :smiley:

yes it is a bug but not serious one like others, although it worked ok first for days, then stops working at some point, don’t know why, perhaps can’t select “description” as mentioned in its php file > line 450. It was looking like other error mentioned in the forums related to quick search, then looking at that select, it is only to show the group name in the header wile selecting permissions, so i removed it looool

and yes i’m facing this along with many other errors, first thing is to look for workarounds then report as bug (mostly useless) or get rid of the functionality, finally, live with it and wait for solution :smiley:

cheers

[QUOTE=itsme3;26450]yes it is a bug but not serious one like others, although it worked ok first for days, then stops working at some point, don’t know why, perhaps can’t select “description” as mentioned in its php file > line 450. It was looking like other error mentioned in the forums related to quick search, then looking at that select, it is only to show the group name in the header wile selecting permissions, so i removed it looool

and yes i’m facing this along with many other errors, first thing is to look for workarounds then report as bug (mostly useless) or get rid of the functionality, finally, live with it and wait for solution :smiley:

cheers[/QUOTE]

yeah…i’ve been at it the whole day. i even opened the file which the error is mentioning in the server and though i have php knowledge, i cant seem to understand the code that is giving me the error. i’ve been trying numerous ways to pinpoint the problem.

thanks again man! :smiley:

A small bug this time, a typo: The next message is not correct English:

There is no messages!

Which occurs when you click on the bell in the IDE.

There ARE no messages!

or

There is no message!

Another typo issue is the helpfile. If you click on help then you get the english helpfile (which is ok) but in the title it says: Coneudo / Busca -> Procurar por:

should be
Search / Search for: