Luis Devis Posted April 16, 2022 Posted April 16, 2022 Hi (again 😅 Ramdomly I get this message when running my application. ... <br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. No idea why this happens and even less on how to solve it. I guess it is a common error for newbies like me so, please, don't ask me too technical questions as, probably, I will not be able to answer them. No idea on what I'm doing wrong (not having done) Thank so much for your help 🙂    Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 Hello, Perhaps because this "erroneous" code is not executed every time. The logic of your application implies this. Are you using JSInterface methods? Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 Yes, but they should be called very time. Is there a way to know which object or call causes the error in this line? 01:35:39.727||||[SERVER] Config Option: O310->cls:"unselectable"<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. unit:System.SysUtils  The matter is : Why does it say is refering a previous request,? I got it at the very first moment Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 2 hours ago, Sherzod said: Are you using JSInterface methods? ? Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 3 hours ago, Luis Devis said: Yes Where exactly? Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 Internally by program , via calls to JSInterface.JSAssign(.... Â Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 7 minutes ago, Luis Devis said: JSInterface.JSAssign Can you try to use JSInterface.JSProperty ? Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 I could if I know what to put in it 😅 Currently I apply these settings pTitulo.JSInterface.JSCall('addCls', ['.myAlDerecha']); lMarchar.JSInterface.JSCall('addCls', ['.myAlAbajo']); Grid.JSInterface.JSConfig('bufferedRenderer', [False]); SaldoPdte.JSInterface.JSCall('addCls', ['unselectable']); bSaldoPdte.JSInterface.JSCall('addCls', ['borderedondo_5']); bSaldoPdte.JSInterface.JSAssign('originalBGColor', [uniColor2Web(color)] JSInterface.JSConfig('inputType', ['number']); Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 All these calls are in the Main form (not module) Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 anyway, I'm concerned on the part that say Config Option; O107->tabConfig: {id:"O107_id_tab"} Is there a way to know what object/control is it talking about so I could check it directly? Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 1 hour ago, Luis Devis said: All these calls are in the Main form (not module) In which event? Quote
Sherzod Posted April 16, 2022 Posted April 16, 2022 procedure TMainForm.UniFormCreate(Sender: TObject); begin  // here? end;  Quote
Luis Devis Posted April 16, 2022 Author Posted April 16, 2022 Sherzod Don`t know why but the Main form is created twice, I have the Mainform and a loginform. All the errors happen just after FormCreate has been processed, no other event but the message happens 22:14:16.116|6|||[SERVER] Config Option: O100->plain:true<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. unit:System.SysUtils Quote
Sherzod Posted April 17, 2022 Posted April 17, 2022 Hello, Can you make a simple testcase to reproduce? Quote
Luis Devis Posted April 17, 2022 Author Posted April 17, 2022 Actually, no. Because don't know what put in it. I should send the whole app as I don't know the origin of the problem. It seems that the modules are loaded (created) twice, but I do not call or create them Maybe a simple test case would not make the error/message come up. Â Â Quote
picyka Posted November 23, 2023 Posted November 23, 2023 Olá, alguém já teve alguma pista sobre esses erros? Quote
picyka Posted November 23, 2023 Posted November 23, 2023 ------------------------------------ Date: 23/11/2023 14:02:47 User: Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Versão: 3.0.0.549 IP: URL: Navegador: chrome Navegador Versão: 119 OS: windows SessionID: 1_Lk9ou1RXJO10DBB2E8D Component: Grid_ConsXXXX (TUniDBGrid) LastAjaxEvent: _dummy_ Form: TUniFrameCadXXXXX Class: Exception Message: Config Option: O14D82->bodyBorder:false<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead. ------------------------------------  Quote
picyka Posted November 23, 2023 Posted November 23, 2023 Date: 23/11/2023 13:42:27 User: Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36 Versão: 3.0.0.551 IP: URL: Navegador: chrome Navegador Versão: 119 OS: windows SessionID: 14_4QWDwTefSF10DBB6321 Component: Grid_ConsXXXXXXXXXXX (TUniDBGrid) LastAjaxEvent: dummy Form: TUniFrameCadXXXXXX Class: Exception Message: Config Option: O9DC2->tabIndex:222<br/>is refering a previous request,<br/>it's not allowed in AJAX request or JS handler.<br/>Use equivalent Public Property or Method instead.  Quote
picyka Posted November 23, 2023 Posted November 23, 2023 Maybe with the logs someone could have some clue . (1).el . (2).el . (3).el . (4).el . (5).el . (6).el . (7).el . (8).el . (9).el . (10).el . (11).el . (12).el . (13).el . (14).el Quote
Sherzod Posted November 23, 2023 Posted November 23, 2023 Hello, There were no errors before, is this after the update or? Quote
picyka Posted November 23, 2023 Posted November 23, 2023 It's an old error, I can't say since when, it sleeps and sometimes appears, but I have no clue what could cause it. Quote
TobiS Posted March 4, 2024 Posted March 4, 2024 i got the same error sometimes. It appears when a form is opened and only for some users. Its not always the same user. In the form i only shows a pdf file, that was created. Anyone found a working solution or even the source for this error? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.