Skip to main content

Topics

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

Topics - Ross T.

1
General Discussion / Show/Hide Menu items conditionally.
Hello,

I've three User Roles in my application and I want to hide certain Menu items based on the role of current logged in User. In order to achieve this, I've two How-To questions...
  • How to get the Role of currently logged-in user?
  • How to hide/show menu items dynamically?

I'm trying it in PHPRad Classic (Laravel + Bootstrap) v5.1.4 of Radsystems.

Awaiting your valuable reply...

Thanks!

R.
2
Suggestions / Better field lookup for Master - Detail (List Page)
In current version, the JOIN interface on List page for the field having master - detail relation with other table allows selecting of table and defining the JOIN over field, to be selected by User. This further imports all fields to the List page field-list. This becomes difficult to handle when tables have too many fields.

I wish the JOIN interface allows me to select the field I want there itself or allows me to edit the SQL statement so only the required fields are selected from master table.

See the screenshot below for illustration of what I mean to say here...

3
General Discussion / Problems with User Authentication...
I attempted to add User Authentication to my application and facing some strange issues.

1. Excluded pages not showing up without Login
I am developing a small Book Database application for personal use which has Books table. I set "books/list" as "No Authentication required" on Authentication screen. I published the application with an anticipation that application will show me "Books" menu which is set to point to Books list. But it took me to Welcome and Login screen; this is strange.

2. Hide instead of saying No Permission
Secondly, I created a User Role "Manager" which does not have "Delete" permission on Books table. I could login correctly, but I saw "Delete" button for the Books. I clicked that and then application did show me error message that I do not have Permission to perform this action. I find this very confusing. I was expecting PHPRad to hide the menu entirely which does not qualify per User Role Permissions.

3. User Role - SQL Data Type?
I see User Role field is required in Users table. What data type to be set for this field?

4. User Profile Image not working
No matter which Image I select, the application is not picking up the image correctly. It uploads the image well and I can see the image in uploads folder. But it just not picking up that image in User Profile and so it falls back to the default "no image" image for User Profile. I checked PHPRad videos on Youtube and I could see that the Profile Image thing is working good. What might be going wrong in my case then? Please advise.
4
General Discussion / Two Save buttons... how to remove the other one?
I wanted to change the default display of Add Page and wanted to show the controls in 2 columns. So, taking the inspiration from the answer posted by @Emman  on "Form Wizard" issue here on this forum, I made a duplicate of Add page and then added a column with col-sm-6. I added the Sub-page view (duplicate add page) to the second column. The result can be seen in the screenshot below...



As you can see, each sub-view is showing its own Save Button. Same is the problem if I want to split the controls on different Tabs. How to make the  sub-page not to show Save button? Can we disable it somehow?
5
General Discussion / [SOLVED] Tab Pages ... how to add more tabs?
I added a Tab page View Component. By default it provided me two Tabs. However I don't see any button or anything where I can ad more Tabs to the Tab Pages component. Please explain how to add more tabs to Tab Pages...
6
General Discussion / Issue with Multiselect
I added a Select Drop down for field "Authors" for "Books". The Authors Select drop down is filled in with the values from "authors" table. I've set the Multiselect to True for this select and the Field Data Source is set such that the "value" is "author_id" and "label" is "author_name".

I noticed that the multi-select stores the values in comma separated format. I want to show the Author Names in List of Books. But it shows the comma separated author_id. How to solve this issue? How to make the List to show the Author Names and not the IDs?
7
General Discussion / Footer CSS Issue
I think there is some problem with CSS of the Footer. Check out this screenshot:
http://prntscr.com/kxyyuk

The Footer goes behind the sidebar and it's also not indented well. Am I missing something? How can I resolve this issue? Of course, I can change the CSS for the Footer myself, but is there any other way so that the Footer issue will be fixed permanent? Where are the Framework files stored on my PC so I can make changes in the source CSS, which is read by the PHPRAD every time I publish the application.

Waiting for your reply...