Search found 37 matches

by shkdxb
2019-03-30 16:01
Forum: Getting Started
Topic: Image Thumbnails Problem
Replies: 8
Views: 2617

Re: Image Thumbnails Problem

Thanks ron, My version is 5.3 so these option of Media Tab not applicable for this version

for Ahmed, my files are jpg extensions, samples attached
by shkdxb
2019-03-05 02:38
Forum: Getting Started
Topic: Image Thumbnails Problem
Replies: 8
Views: 2617

Re: Image Thumbnails Problem

i unchecked "don't Rename Uploaded files" in Appgini Image field, and regenerated the app, then Thumbnail appeared. When i check this option, thumbnails are not generating, i can live with that for time being, but any suggestion to retain the original file name is most appreciated. My version of App...
by shkdxb
2016-03-23 09:54
Forum: Advanced Customizations > Others
Topic: Lock a row to prevent simultaneous access or editing
Replies: 9
Views: 4546

Re: Lock a row to prevent simultaneous access or editing

As an alternative to record lock, i made an edit button which will replace the Save as button when details view is called. Added a button in Detail view template just above update button's <div.. (template folder TableName_templateDV.html file) replaced Update buttons code with <!--addition for Edit...
by shkdxb
2016-03-18 05:53
Forum: Tips And Tricks
Topic: Audit Log
Replies: 33
Views: 9914

Re: Audit Log

Thanks primitive Instead i created a separate Table in Appgini Application Builder and used same Table name and Field names as yours. now this is part of my main application accessible through Child records as well as with separate Table/ details view with full search function of Appgini but your co...
by shkdxb
2016-03-18 05:35
Forum: Advanced Customizations > Others
Topic: Lock a row to prevent simultaneous access or editing
Replies: 9
Views: 4546

Re: Lock a row to prevent simultaneous access or editing

I am also looking for such Record level locking. i had a situation where two users tried to update the same record and corrupted fields with wrong details. tried various combinations like: 1. Changed the DB Table to InnoDB and used " SELECT * FROM `TableName` HAVING ID= '$selectedID' LIMIT 1 FOR WRI...
by shkdxb
2016-03-07 04:11
Forum: Advanced Customizations > Hooks
Topic: Problem Controlling Column Display in Table View
Replies: 3
Views: 2415

Re: Problem Controlling Column Display in Table View

I could able to hide the content by using below code in Table view. This code is inserted inside tablename_init(){ } in hooks/tablename.php file function tablename_init(&$options, $memberInfo, &$args){ $oldArray=$options->QueryFieldsTV; $options->QueryFieldsTV=''; foreach($oldArray as $field => $cap...
by shkdxb
2016-02-29 17:24
Forum: Tips And Tricks
Topic: Can Appgini restrict viewing records by location?
Replies: 4
Views: 4759

Re: Can Appgini restrict viewing records by location?

you can do like this
http://forums.appgini.com/phpbb/viewtopic.php?t=1942

Code: Select all

if($memberInfo['group']=='Admins' || $memberInfo['group']=='someothergroup'){
       your code here
      
   }else{
by shkdxb
2016-02-21 13:11
Forum: Tips And Tricks
Topic: Audit Log
Replies: 33
Views: 9914

Re: Audit Log

Thanks Primitive could able to install and get the audit log working.i Used 'res_ID' field to show my records ID. when i search for any record by inputting record ID, inside "Type here to filter data" search box, it is searching only on the visible page and not searching entire Table "auditor". is i...
by shkdxb
2016-01-02 04:23
Forum: Advanced Customizations > Others
Topic: Tabbed Detail view
Replies: 7
Views: 5333

Tabbed Detail view

My details view is having lot of fields and i want it be in a tabbed view. searched and found some info from Bootstarp and just sharing it if anyone want to make tabbed view of Details page. open the file tablename_templateDV.html inside /templates/ folder. find the line <fieldset class="form-horizo...
by shkdxb
2015-09-04 14:21
Forum: Getting Started
Topic: error on saved search
Replies: 1
Views: 1115

error on saved search

i am trying to save the search by creating HTML file from code provided by Appgini. this is the code i got from the app <form method="post" action="http://mysite.com/MainTable_view.php"> <input name="FilterAnd[1]" value="" type="hidden"> <input name="FilterField[1]" value="1" type="hidden"> <input n...
by shkdxb
2015-09-02 03:43
Forum: Advanced Customizations > Hooks
Topic: Prevent editing based upon a date except for certain groups
Replies: 2
Views: 2241

Re: Prevent editing based upon a date except for certain groups

I found the reason for this code not working. when we make a field readonly or hidden in Detail view, the above code will not work. to make the code to work after updating the records, make this field as visible and not a readonly field. still searching for answer for "echo "You cannot Update after ...
by shkdxb
2015-09-01 17:12
Forum: Getting Started
Topic: Is it possible to restrict number of digit of integer field?
Replies: 2
Views: 1441

Re: Is it possible to restrict number of digit of integer field?

Thanks ahmed I found the following example under Magic files in Online help, which solved my problem document.observe('dom:loaded', function() { $('score').observe('change', function() { if(isNaN($F('score')) || $F('score') > 100 || $F('score') < 0){ alert('Score must be between 0 and 100!'); $('sco...
by shkdxb
2015-08-30 02:55
Forum: Advanced Customizations > Hooks
Topic: Prevent editing based upon a date except for certain groups
Replies: 2
Views: 2241

Re: Prevent editing based upon a date except for certain groups

Hi Shasta thanks for the code i am trying to use your code and found not working for me. actually i am trying to prevent editing to records if value of the field "UpdateAllowed" is "No". used following code: function TableName_before_update(&$data, $memberInfo, &$args){ $UpdateAllowed = $data['Updat...
by shkdxb
2015-08-29 03:39
Forum: Getting Started
Topic: Is it possible to restrict number of digit of integer field?
Replies: 2
Views: 1441

Is it possible to restrict number of digit of integer field?

I wanted to restrict input to integer field to 8 digits only. if user enters less than 8 digits, i need a pop up saying an error message. Is it possible with Appgini?. My version is 5.30 rev 628.

any help appreciated
by shkdxb
2015-08-26 03:50
Forum: Tips And Tricks
Topic: Audit Log
Replies: 33
Views: 9914

Re: Audit Log

thanks for sharing the method primitive_man. is it possible to include as hook instead of IncCommon.php functions? i am afraid when i do any change in Appgini and upload new files this file will be overwritten and i hava to go through the process again. if it is hooks folder, it is safe to make chan...
by shkdxb
2014-10-03 17:38
Forum: Advanced Customizations > Others
Topic: Make a filed as readonly
Replies: 8
Views: 3451

Re: Make a filed as readonly

Thanks uday done it

Code: Select all

if(document.getElementById("Jobnumber").value!=""){
document.getElementById("Jobnumber").readOnly = true;
}
by shkdxb
2014-10-03 16:02
Forum: Advanced Customizations > Others
Topic: Make a filed as readonly
Replies: 8
Views: 3451

Re: Make a filed as readonly

is it possible to use function MainTable_before_update() to make this field readonly? i have tried "'MainTable'.'Jobnumber'.Disabled = true;" and "'MainTable'.'Jobnumber'.readOnly = true;" but both of them not working function MainTable_before_update(&$data, $memberInfo, &$args){ 'MainTable'.'Jobnum...
by shkdxb
2014-10-03 14:59
Forum: Advanced Customizations > Others
Topic: Make a filed as readonly
Replies: 8
Views: 3451

Re: Make a filed as readonly

Sorry its not working, actually i want to make this field to readonly in update mode. the filed name is "Jobnumber". document.getElementById("Jobnumber").readOnly = true; I created a new file MainTable-dv.js (MainTable is table name) in hooks folder and created as above line. but this is not having ...
by shkdxb
2014-10-01 16:15
Forum: Advanced Customizations > Others
Topic: Make a filed as readonly
Replies: 8
Views: 3451

Re: Make a filed as readonly

thanks uday. any sample code is appreciated. i would like to use magic hooks
table.field.property== readonly will work?
by shkdxb
2014-09-19 06:04
Forum: Advanced Customizations > Others
Topic: Make a filed as readonly
Replies: 8
Views: 3451

Make a filed as readonly

i want to make a primary key field as readonly to prevent any update after initial entry. Appini is allowing to make the readonly all the time. Is it possible to make the field readonly after initial value is entered?
by shkdxb
2014-06-29 03:21
Forum: Advanced Customizations > Hooks
Topic: Customizing Modal box
Replies: 3
Views: 2693

Re: Customizing Modal box

anyone help pl.
by shkdxb
2014-06-28 14:12
Forum: Feature Suggestions
Topic: Icons, Skins
Replies: 13
Views: 9302

Re: Icons, Skins

pl refer my screen. any idea why i am not getting the links in home page?
by shkdxb
2014-06-27 05:17
Forum: Feature Suggestions
Topic: Icons, Skins
Replies: 13
Views: 9302

Re: Icons, Skins

Tried using $homeLinks[0] = array(... for first array and $homeLinks[1] = array(.... for second link, but home page shows only the first link -$homeLinks[0] = array(... full code below $homeLinks[0] = array( 'url' => 'http://site.com/eitsla/eitsla.php', 'title' => 'Dash Board (summery)', 'descriptio...
by shkdxb
2014-06-23 02:53
Forum: Advanced Customizations > Hooks
Topic: Customizing Modal box
Replies: 3
Views: 2693

Re: Customizing Modal box

this works but
1. the title is still shows as "Problem related". how to change this
2. The focus is not on end date filed after the modal box removed
3. This error shows up whenever i try to save the record, even when the date are correct.