Skip to main content

Show Posts

This section allows you to view all Show Posts made by this member. Note that you can only see Show Posts made in areas you currently have access to.

Messages - tin

4
Bugs / Re: javascript working not corectly if field is same name.
@willvin to clarified as you can see in picture table1 have a field id_group and table2 have the same field name.(I use to filter data.)
Then,when phprad generate code it use #ctrl-id_group as the same code on page for table1 and on page for table2.This will trigger script from page1(table1) on page2(table2) too.Because phprad use file page-scripts.js as a global script to all pages.
6
Bugs / javascript working not corectly if field is same name.
javascript will working not corectly if field is same name because phprad use a main function script (file name : page-script.js)
if control name was the same name.
(ex. table 1 have field group_id and table 2 have group_id too.)
javascript that assign to table1 page will tricker on table2 page too.(because group_id is the same name. :-X
10
Bugs / UTF8 on Audit trail logs
On RequestData field data is not correct.
I found code in BaseController.php
Code: [Select]
$request_data = json_encode($modeldata);
the corect code to solve for utf8 data is
Code: [Select]
$request_data = json_encode($modeldata, JSON_UNESCAPED_UNICODE);
11
Questions / Re: Need some advice about Custom field
@willvin  Did custom field support sql to other table?
example if I have 2 table
1.customer
2.customer_outcome
If I want sum of customer_outcome,can I coding like this on expression of custom field?
Code: [Select]
SELECT SUM(outcome_value) 
  FROM customer_outcome GROUP BY id_cus
PS.Custom field created on list page of customer table.
12
Questions / Re: help
use add page and select page type to Add or edit
15
General Discussion / Re: Ajax post request
This will help other user that have the same problem with ajax.I know the root cause why it not working in newer version phprad.
Because of when we call ajax url,it not go to root path.
As in ubbxst code is
Code: [Select]
url:'score/getnames.php',
score folder is next from root path.
If this ajax is use in url = {root_path}/customer/add,Ajax not go to right url.It will call to
{root_path}/customer/add/score/getnames.php.  (the correct url is {root_path}/score/getnames.php)
So,to fix it.Your url must add ../ in your code. :-\
Code: [Select]
url:'../score/getnames.php',

Ajax will go to correct url and working again. 8)