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 - n8

1
Bugs / Re: Non-Unique Element IDs
I came up with a solution. It just deletes the innerHTML, once the modal is hidden. Seems to work fine.
In Custom JS I added:
Code: [Select]
$(document).ready(function() {
    var open_page_modal = $(this).find('.open-page-modal');
    var modal = open_page_modal.next('.modal');
    modal.on('hidden.bs.modal',function(){
        var modal_body = $(this).find('.modal-body').get(0);
        modal_body.innerHTML="";
    });
    var main_page_modal = $(this).find('#main-page-modal');
    main_page_modal.on('hidden.bs.modal',function(){
        var modal_body = $(this).find('.modal-body').get(0);
        modal_body.innerHTML="";
    });

});
2
Bugs / Re: Non-Unique Element IDs
I did edit the design of the list page and for the "Add" button I set it to "Preloaded Modal", this causes the "Add" "ctrl-FieldName" Id to exist when the page loads, and the duplicate is created when the "Edit" button is clicked.
If I set the "Add" button to "Ajax Modal", then the Id is not duplicated until I click both "Add" and "Edit" buttons. Which is of course something a user may want to do.
3
Bugs / Re: Non-Unique Element IDs
I set AjaxPage to false and reloaded, but the Ids are still duplicated.
They are unique until I click Edit on an existing record and the Edit modal appears. I looked at the click event for the edit button and it still loads the page via Ajax. I also see a new XHR in the Developer pane loading the page.
5
Bugs / Non-Unique Element IDs
I have a table with auto generated List, Add, and Edit Pages.
When I set the List page "Modal Edit" to True, the resulting List page ends up with non-unique element Ids.
The page includes both Add and Edit elements for each field, but they end up with the exact same element Id (i.e. ctrl-FieldName), this causes adding an onChange event by element Id not to work. The onChange event gets assigned to the add page, but not the Edit page in my case.

I saw another thread with a work around, but from my understanding, element Ids should be unique, and this seems like a bug.

I am wondering how many other javascript problems this causes as well. I have been trying to figure out why my select boxes don't work right, and this seems to be a possible reason.

Sure I could set modal edit to false, but modal gives the behavior I am looking for.
6
Questions / Re: How to delete duplicated listview component on page design?
I have had a similar problem in classic 2.7.3. I open a page in design mode and then the red X for delete is disabled. I have to click on other components until one of them enables delete, then I can go back and delete what I wanted to.
To reproduce:
1. From Pages Tab click Design button for a page.
2. Click on a sub page under "Drag and Drop Components" tree.
3. The Delete button will remain disabled and you cannot delete sub-page.
4. Click on a Section Row, the delete will then enable.
5. Click on a sub-page
6. Delete button remains enabled and now you can delete.

7
Bugs / Bug with database passwords
I generated a random password and it included "$Z" in it.
The password gets placed directly in config.php unescaped.
When the php runs it can't find the variable Z.
I manually escaped it in the config, but it seems like it should escape automatically or at least warn.
8
Issues / Re: Master Detail error
I think I figured it out. The database was restored from another system and somehow that leaves the database without an owner.
In MS SQL Server Management Studio I right clicked on the database and selected properties. Under Files I set the owner to "sa".

Here is a link to the directions I followed: https://blog.sqlauthority.com/2019/03/04/sql-server-fix-database-diagram-error-15517-cannot-execute-as-the-database-principal-because-the-principal-dbo-does-not-exist/
9
Issues / Re: Master Detail error
I've tried setting "Master Table foreign Key" first and it still crashes. I tried this with a table and a view. I also noticed that depending on which field I click on before opening "Set Relation" the "Master Table Foreign Key" list will be blank or it will be populated with all of the other fields in the table/view.
10
Issues / Re: Master Detail error
I have a very similar if not the same problem. I am running PHPRad Classic Version 2.7.3 Licensed on Windows 10.
I'm using PHPRad with MS SQL Server.
I go to the "Pages" tab, select a table, then select a field, then on the right side in the "field properties" box I click the "..." after "Master Detail Relation Page" and a box pops up titled "PhpRad" with the message "Object reference not set to an instance of an object.".  I click "OK" and the "Master Detail Relation" dialog box comes up. I click the "DetailTable" dropdown arrow and select a table name. As soon as I select a table name, it crashes.

Perhaps I need to configure something elsewhere, before trying to use this setting, but if that is the case, then the application should give an error message explaining the problem rather than exiting.



Text of the error message:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
   at PhpRad.FormMasterDetail.TxtDetailTable_SelectedIndexChanged()
   at PhpRad.FormMasterDetail._Lambda$__R26-1(Object a0, EventArgs a1)
   at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
   at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
   at System.Windows.Forms.ComboBox.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
PhpRad
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/PHPRad%20Classic/PhpRad.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4001.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4180.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4150.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
FastColoredTextBox
    Assembly Version: 2.16.3.0
    Win32 Version: 2.16.3.0
    CodeBase: file:///C:/Program%20Files%20(x86)/PHPRad%20Classic/FastColoredTextBox.DLL
----------------------------------------
Newtonsoft.Json
    Assembly Version: 4.5.0.0
    Win32 Version: 4.5.11.15520
    CodeBase: file:///C:/Program%20Files%20(x86)/PHPRad%20Classic/Newtonsoft.Json.DLL
----------------------------------------
System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Deployment
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Deployment/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Deployment.dll
----------------------------------------
Microsoft.VisualBasic.PowerPacks
    Assembly Version: 9.0.0.0
    Win32 Version: 3.0.30214.0
    CodeBase: file:///C:/Program%20Files%20(x86)/PHPRad%20Classic/Microsoft.VisualBasic.PowerPacks.DLL
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3752.0 built by: NET48REL1
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.