Search found 167 matches

by D Oliveira
2020-02-01 02:13
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

I used the code above as a template but when the user logs it says they do not have any permission to view any pages. I tried changing the permission of the group to All for view, edit, and delete, but that didnt help. Somehow the code below locks anyone in group ID 21 from viewing the damaged_defe...
by D Oliveira
2020-01-31 06:16
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

This makes sense, but I have one question about the code. We have about 10 different groups that access the warranty table. We only want group = Honda to see records where field vendor = honda. I believe the first part of your "if statement" above will accomplish that. BUT , we want the other 9 gro...
by D Oliveira
2020-01-30 20:46
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

This makes sense, but I have one question about the code. We have about 10 different groups that access the warranty table. We only want group = Honda to see records where field vendor = honda. I believe the first part of your "if statement" above will accomplish that. BUT , we want the other 9 gro...
by D Oliveira
2020-01-30 18:55
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

@D Oliviera, That post is for hiding and locking fields, we need to be able to hide/show rows (records). I'm not a php/jscript coder so I would not know how to manipulate their code to make it record based instead of fields. I don't think this is overly complicated and I know it involve hooks, but ...
by D Oliveira
2020-01-30 06:17
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

Wouldn't this just show the records to the admin group and hide it for everyone else? Also, where do I put the field value that I want to trigger hide or show? Let me be more specific as to my requirements. We have a table that tracks warranty information by vendor. The table contains records for m...
by D Oliveira
2020-01-30 01:12
Forum: Getting Started
Topic: How to hide records by Group or user?
Replies: 18
Views: 3321

Re: How to hide records by Group or user?

go to your tablename.php inside hooks folder and look for the tablename_dv function, add this (change group ID to your admin group ID #) : if(isset($_REQUEST['dvprint_x'])) return; ob_start(); ?> <script> <?php if ($memberInfo['group ID'] == '2' ){?> $j(function(){ $j('#field1').parents('.form-group...
by D Oliveira
2020-01-29 21:09
Forum: Getting Started
Topic: order by behaving differently on mobile
Replies: 1
Views: 979

order by behaving differently on mobile

hello all, this is my order by in chrome desktop view:

Image


this is my order by in chrome iphone view:

Image

why does it behave alphabetically on mobile view and how to switch it to the standard order? thank you
by D Oliveira
2020-01-29 20:13
Forum: Getting Started
Topic: re-enable quick search?
Replies: 3
Views: 1215

Re: re-enable quick search?

solution: reset tablename_view.php, go to templates/tablename_templateTV.html change this: <dt class="recipes-kcal-caption field-caption-tv">Calorias</dt> <dd id="recipes-kcal-<%%VALUE(id)%%>" class="recipes-kcal h6 text-bold"><%%SELECT%%><%%VALUE(kcal)%%><%%ENDSELECT%%></dd> to this: <dt class="rec...
by D Oliveira
2020-01-29 19:49
Forum: Getting Started
Topic: re-enable quick search?
Replies: 3
Views: 1215

Re: re-enable quick search?

Hmm ... my guess is that the quick search form, for non-admin users, is now being submitted to 'receitas_pdf.php', which seems not to handle quick search the same way the _view file handles it. exactly, I could switch back and put a window.location.replace in the table_dv function in the tablename....
by D Oliveira
2020-01-28 19:11
Forum: Getting Started
Topic: re-enable quick search?
Replies: 3
Views: 1215

re-enable quick search?

hello all, i have changed my tablename_view.php from: $x->ScriptFileName = "recipes_view.php"; to this: $mi = getMemberInfo(); if( $mi['groupID'] == '2' ){ $x->ScriptFileName = "recipes_view.php"; }else{ $x->ScriptFileName = "receitas_pdf.php"; } the goal was to take the admin to detail view and use...
by D Oliveira
2020-01-24 22:17
Forum: Getting Started
Topic: website works on locahost and loads forever on server
Replies: 1
Views: 722

Re: website works on locahost and loads forever on server

i dropped my server database and cloned the local host one and now it worked fine, weird solution hope that doesn't happen again spontaneously, any chance anyone know how that might have happened and why was the database responsible for it?
by D Oliveira
2020-01-24 22:00
Forum: Getting Started
Topic: website works on locahost and loads forever on server
Replies: 1
Views: 722

website works on locahost and loads forever on server

hi, my application works on locahost and it has been working fine on my godaddy server until this morning, I tried to load it and a white screen keeps loading forever, no console errors, the website is https://fitbookapp.net/fitbook/ cleared the cache, tried different machines, different connections...
by D Oliveira
2020-01-17 13:48
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

Hi D Oliveira, I do not really understand, why you could not normalize your clients table as Jan suggested. IMHO AG provides an easy way to create nice looking pages with master-client records. I tried to give you a hint by changing your provided file a little. When you generate this, you should be...
by D Oliveira
2020-01-16 21:43
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

actually here is the full log:

https://imgur.com/22ZmiFg
by D Oliveira
2020-01-16 21:32
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

upgraded to 5.81, error still happening, but now console shows this:

https://imgur.com/YuKIp9H
by D Oliveira
2020-01-16 21:18
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

Hmm, with AppGini 5.81 I cannot reproduce the reported error. I can create new policies #1, #2 and #3 using any of the (+) buttons next to the dropdown. Afterwards the created policy exists in the dropdown as expected. After save, those values get restored as expected, too. chrome_LOyOXZUTA6.png Ma...
by D Oliveira
2020-01-16 20:55
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

Hi, I've not seen this behaviour before. Actually, usually I normalize my tables to avoid such binding if possible. But there are projects in which I have tables with maximum 2 similar lookup bindings on the same parent field. This works well in both tables (child-table/parent-table). Honestly, I d...
by D Oliveira
2020-01-16 20:02
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

Re: can only add to first lookup field?

running appgini 5.76 , just generated a sample from scratch without any of my custom code and this error still persists, it seems to be a bug, has anyone else experienced that?
by D Oliveira
2020-01-14 23:53
Forum: Getting Started
Topic: can only add to first lookup field?
Replies: 11
Views: 1373

can only add to first lookup field?

please look at this image:

https://i.imgur.com/92jyZvc.png

even if i try to "add new" from the second or third or forth... policy it always replace the policy #1, is that a problem with lookups? it only allows to add new to the first lookup field?
by D Oliveira
2020-01-08 03:31
Forum: Getting Started
Topic: insert user from piping script
Replies: 1
Views: 446

Re: insert user from piping script

nevermind found it :) sql("INSERT INTO `membership_users` set memberID='{$email}', passMD5='" . password_hash('userpasswordstring', PASSWORD_DEFAULT) . "', email='{$email}', signupDate='" . @date('Y-m-d') . "', groupID='7', isBanned='0', isApproved='1', custom1='{$date2}', custom2='', custom3='', cu...
by D Oliveira
2020-01-07 21:52
Forum: Getting Started
Topic: "A data breach on a site or app exposed your password" message
Replies: 5
Views: 1574

Re: "A data breach on a site or app exposed your password" message

Hi D Oliveira, let's stay with you (not your customers for a moment): Think about this: Are using a different password for your different logins? If you answer this with YES, I would find it very strange to get such a warning. There are password breaches every day, so maybe see this as a "general" ...
by D Oliveira
2020-01-07 21:50
Forum: Getting Started
Topic: insert user from piping script
Replies: 1
Views: 446

insert user from piping script

hi! im selling a subscription product and once the confirmation email is sent to the user i am also sending a bcc to my server email to create an account in the appgini application, my question is how to hash the password the same way appgini mechanism does it?
by D Oliveira
2020-01-01 20:37
Forum: Getting Started
Topic: "A data breach on a site or app exposed your password" message
Replies: 5
Views: 1574

Re: "A data breach on a site or app exposed your password" message

pböttcher wrote:
2020-01-01 20:03
Hi,

change your password. There is not much else you can do.
Every user that logs in my website gets that message, not just me
by D Oliveira
2020-01-01 19:22
Forum: Getting Started
Topic: "A data breach on a site or app exposed your password" message
Replies: 5
Views: 1574

"A data breach on a site or app exposed your password" message

With the new chrome update whenever i log in my appgini applications this message pops up:

Image

Anyone experiencing that? Is there a possible fix?
by D Oliveira
2019-12-30 00:54
Forum: Getting Started
Topic: open detail view in new tab instead of replacing current?
Replies: 1
Views: 366

open detail view in new tab instead of replacing current?

found this on datalist.php if($this->AllowSelection == 1 && $SelectedID != $row[$FieldCountTV]){ $rowTemp = str_replace('<%%SELECT%%>',"<a onclick=\"document.myform.SelectedField.value=this.parentNode.cellIndex; document.myform.SelectedID.value='" . addslashes($row[$FieldCountTV]) . "'; document.myf...