Search found 68 matches

by sacgtdev
2023-01-20 01:15
Forum: Bugs/annoyances
Topic: lookup field sql query error when insert/delete record
Replies: 1
Views: 355

Re: lookup field sql query error when insert/delete record

please ignore. issue rectify.. update incCommon.php
by sacgtdev
2023-01-17 06:28
Forum: Bugs/annoyances
Topic: lookup field sql query error when insert/delete record
Replies: 1
Views: 355

lookup field sql query error when insert/delete record

Appgini 5.97 SELECT `trial_recfertiliser`.`id` as 'id', IF( CHAR_LENGTH(`trial1`.`trial_code`), CONCAT_WS('', `trial1`.`trial_code`), '' ) as 'trial_id', IF( CHAR_LENGTH(`fertiliser_conversion`.`fertiliser_name`), CONCAT_WS('', `fertiliser_conversion`.`fertiliser_name`), '' ) as 'fertiliser_name' FR...
by sacgtdev
2022-07-22 03:10
Forum: Advanced Customizations > Others
Topic: Button color based on query value
Replies: 1
Views: 287

Button color based on query value

How to code the button color so that the button color based on certain conditional value?

eg. if query_value >0, then color = green, otherwise, red.

Button is currently generated using jquery.
by sacgtdev
2022-03-07 03:36
Forum: Bugs/annoyances
Topic: Batch action 'change owner' doesn't show users list
Replies: 4
Views: 1133

Re: Batch action 'change owner' doesn't show users list

May I ask whether you have resolved it? Can you share the workarounds?
by sacgtdev
2022-02-09 09:04
Forum: Tips And Tricks
Topic: Placing update_calc_fields function after csv import
Replies: 0
Views: 516

Placing update_calc_fields function after csv import

May I know where to place the update_calc_fields function so that the calculated field will be auto-calculated after every csv import?
by sacgtdev
2021-12-30 15:49
Forum: Tips And Tricks
Topic: DropDown List different colors
Replies: 17
Views: 5871

Re: DropDown List different colors

The code works. Thank you pböttcher
by sacgtdev
2021-12-29 23:41
Forum: Tips And Tricks
Topic: DropDown List different colors
Replies: 17
Views: 5871

Re: DropDown List different colors

How to change the text color of drop-down options?

Image
by sacgtdev
2021-12-29 13:04
Forum: Tips And Tricks
Topic: DropDown List different colors
Replies: 17
Views: 5871

Re: DropDown List different colors

I would like to change the background of option list with different color as shown below. Trying to use the code as shown below, but nothing seems to have changed in appearance.. Is my selector correct? https://i.imgur.com/cVTxpxr.jpeg Code placed in tablename-dv.js $j(function () { var onSelectOpen...
by sacgtdev
2021-12-29 08:45
Forum: Tips And Tricks
Topic: DropDown List different colors
Replies: 17
Views: 5871

Re: DropDown List different colors

I trying out the code shared by Pbotcher, but couldn't make it work...Can anyone help? Following is the js code: https://forums.appgini.com/phpbb/viewtopic.php?t=2876#p9282 $j(function () { var onSelectOpen=function(){ $j(".select2-drop-active .select2-result-selectable:eq(0)").css("color","") $j("....
by sacgtdev
2021-12-26 12:31
Forum: Tips And Tricks
Topic: import csv and do calculation for each record
Replies: 0
Views: 914

import csv and do calculation for each record

Hi. I would like to know how to concurrently do calculation for the calculated field when importing record via csv import.

Any idea?

Regards,
Stephen Yap
by sacgtdev
2021-12-24 06:42
Forum: Tips And Tricks
Topic: RecordsPerPage = $pagenumber
Replies: 2
Views: 961

Re: RecordsPerPage = $pagenumber

thanks. It works.
by sacgtdev
2021-12-23 10:09
Forum: Tips And Tricks
Topic: CSV magic fiile (option list)
Replies: 1
Views: 757

CSV magic fiile (option list)

For the list option using csv method, if the 'option 1' is removed from the csv. The previously entered value will not be shown in the form details. Re-saving the record will nullify the value. Is there any tricks to circumvent the changes on the field to NULL during saving despite the original valu...
by sacgtdev
2021-12-23 10:08
Forum: Tips And Tricks
Topic: RecordsPerPage = $pagenumber
Replies: 2
Views: 961

RecordsPerPage = $pagenumber

I would like to let user to choose the no. of record per page. Is there anyone can share the code? I am thinking of leveraging $x->RecordsPerPage = $pagenumber; and create a table to let users to specify page number eg. 25 instead of hard-coded? But, how to store that in the session when a user modi...
by sacgtdev
2021-11-14 04:34
Forum: Advanced Customizations > Hooks
Topic: Search Crashes when searching Views using global-search.php
Replies: 5
Views: 1776

Re: Search Crashes when searching Views using global-search.php

Hi mohamed, I have similar objective as yours which is to allow user to view records which are inaccessible to them in the actual table. I think we can create the view for each table and edit the global-search.php where: /* get tables accessible by current user */ //$tables = getTableList(); //chang...
by sacgtdev
2021-10-08 05:04
Forum: Getting Started
Topic: Filter by selected in table view
Replies: 7
Views: 1726

Re: Filter by selected in table view

Having querywhere set in hooks init, I am able to filter the record. But, if navigate from other page to the page that have querywhere set, the page will not load and require re-submission/refresh.
by sacgtdev
2021-10-08 00:18
Forum: Tips And Tricks
Topic: Audit Log
Replies: 115
Views: 108528

Re: Audit Log

I did the test before and after installation of audit log. However, I didn't meant that the flaw is from the audit log, it could be the conflict with existing setup. I will try on a fresh generated application using Appgini 5.97 (before and after) to confirm again.
by sacgtdev
2021-10-03 03:09
Forum: Tips And Tricks
Topic: Audit Log
Replies: 115
Views: 108528

Re: Audit Log

Hi, onoehring I am experiencing a little annoyance after install the audit log on Appginin 5.97. When I navigate to admin page after the first login attempt, it will return me to an login page again. I have to re-login in order to access the Admin page. May I know whether this is bug that ye to reso...
by sacgtdev
2021-10-02 02:44
Forum: Tips And Tricks
Topic: implement update_calc_fields in import csv
Replies: 0
Views: 937

implement update_calc_fields in import csv

How to implement update_calc_fields function in import-csv.php so that every record imported would have calculated field run automatically?
by sacgtdev
2021-09-28 08:11
Forum: Advanced Customizations > Others
Topic: URL length limitation to filter records
Replies: 9
Views: 2191

Re: URL length limitation to filter records

Thank you for your kind suggestion.
by sacgtdev
2021-09-25 11:39
Forum: Advanced Customizations > Others
Topic: URL length limitation to filter records
Replies: 9
Views: 2191

Re: URL length limitation to filter records

That should avoid the link send via email being truncated. A proxy link (shorter) to return the actual link (long). But, the long link will still limited by the browser url's length. I check on the https://youtu.be/7gMWoVh62wU?t=145. In appgini old version, it actually generate the POST form. May th...
by sacgtdev
2021-09-24 10:28
Forum: Advanced Customizations > Others
Topic: URL length limitation to filter records
Replies: 9
Views: 2191

Re: URL length limitation to filter records

Hi, Oliveira. Can you elaborate more or give example/ any external reference? save query string on a temporary file - if it is temporary, that means it will not be persistent and access in future? request string on load with sessionStorage or localStorage - request strings is GET to the temporary fi...
by sacgtdev
2021-09-22 12:45
Forum: Tips And Tricks
Topic: Create Multiple Records in a Table from one form
Replies: 4
Views: 1911

Re: Create Multiple Records in a Table from one form

Interested to know the method.
by sacgtdev
2021-09-21 07:32
Forum: Advanced Customizations > Others
Topic: URL length limitation to filter records
Replies: 9
Views: 2191

Re: URL length limitation to filter records

For example, I have constructed a url for a filtered records, as follows: http://localhost.com/abc_view.php?SortField=&SortDirection=&FilterAnd[1]=and&FilterField[1]=1&FilterOperator[1]=equal-to&FilterValue[1]=39&FilterAnd[2]=or&FilterField[2]=1&FilterOperator[2]=equal-to&FilterValue[2]=40&FilterAnd...
by sacgtdev
2021-09-20 02:10
Forum: Advanced Customizations > Others
Topic: URL length limitation to filter records
Replies: 9
Views: 2191

URL length limitation to filter records

There is url length limitation: When the url was constructed and email to outlook, it tends to be truncated if length exceeded 2048. In addition, different browser also will put limitation on the url length. Is there any existing method in appgini, something like a POST method? I explore this https:...