I will gloss over the absurdity, for now, of a “low code/no code” platform requriing this kind of technical solution to do something as simple as redirect the user to an external website by clicking a button:https://asiablog.acumatica.com/2017/08/redirecting-to-external-page-from-button.html I have implemented the solution described in the article, with a button in the Sales Order toolbar to launch a custom item lookup screen (it’s an external webpage that lives outside Acumatica and communicates to Acumatica via webhook).That all works well, except for one thing. If I try to pass any query parameters in the url (standard http get request….i.e Redirect8: http://www.mysite.com?myqueryparam=bob, then for whatever reason the query parameters are all stripped when the page loads. This seems to be happening with some sort of Javascript perhaps (I haven’t traced the source yet), because it’s very clear that the url is requested with query params, but then ends up without them. If I load the
Hi all, When trying to get a token we receive “unauthorized_client” error. I double checked client id and secret are correct, and the “code” generated with the same client id without any issue on prior step. Reading the error code I suspect there may be a place where we give authorization the client application to get tokens? Not sure… Any help is appreciated
If I already Login but My token has been expired .How to refresh token get. or Any other way to get token through rest API.
Specifically we are trying to customize the Attributes screen to add an Attribute Type/Category field (combobox). Then we can categorise attributes by Customer, Item, Other etc.I have created the custom field (usrAttributeType) as a PXDBString with PXStringList for the combo values.I have modified the PXSelector for the Attribute ID field. We want to have the Selector for the AttributeID use the value from the custom field to limit the attributes to ones with the category selected instead of the constant it uses currently. The field is called usrAttributeType and I have added the following so far:namespace PX.Objects.CS{ public class CSAttributeMaint_Extension : PXGraphExtension<CSAttributeMaint> { #region Event Handlers public class attribType: PX.Data.Constant<string> { public attribType() : base("I") { } } [PXDBString(10, IsUnicode = true, IsKey = true, InputMask = ">aaaaaaaaaa")] [PXDefault()] [PXUIField(DisplayName = "Attribute ID", Visibi
Hi Everyone,I’ve Created a new Extension DAC.in this DAC fields , I have to set the PXDefault values but, getting null reference error when inserting time.can you please help me on this ,How to insert the Default value in DB? . this is my Extension DAC fields :- #region WcID [WorkCenterIDField(Enabled = false)] [PXUIField(DisplayName = "Work Center", Enabled = false)] [PXDefault(typeof(Search<AMProdOper.wcID, Where<AMProdOper.orderType, Equal<Current<AMClockItem.orderType>>, And<AMProdOper.prodOrdID, Equal<Current<AMClockItem.prodOrdID>>, And<AMProdOper.operationID, Equal<Current<AMClockItem.operationID>>>>>>))] [PXFormula(typeof(Default<AMClockItem.operationID>))] [PXReferentialIntegrityCheck] public abstract class wcID : PX.Data.BQL.BqlString.Field<wcID> { } protected string _WcID; public virtual string WcID {
I have a webhook working in Acumatica. I want to be able to return, to the caller, some JSon of the transaction that they created instead of just status 200.public async Task<System.Web.Http.IHttpActionResult> ProcessRequestAsync(HttpRequestMessage request, CancellationToken cancellationToken){ try { //do some things } catch (Exception ex) { var failed = new ExceptionResult(ex, true, new DefaultContentNegotiator(), request, new[] { new JsonMediaTypeFormatter() }); return failed; } //This is where I’m stuck. I’d be happy to return some JSon, similar to what the API would return after a successful call return ???}Intellisense is good at telling me what I can’t do, not really good at telling what I should do. :)
Hello,I am trying to embed a webpage into a tab item on an existing screen but it is not working. I am trying two different ways based on some code snippets I found. The first, utilizes standard containers and redirect exceptions (Redirect Option). The code gets validated but every time I go to check the output, I get the following: I checked to ensure that the website is iFrame compatible and it is so I am not sure why I am getting this if it has worked for others. Below is my code, very simple.. using System;using PX.Data;namespace SampleiFrame{ public class SampleIFrame : PXGraph<SampleIFrame> { public SampleIFrame() { throw new Exception("Redirect:https://**WEBSITE**.com$target=main"); } }}The other option is to just modify the aspx directly since I don’t need any standard containers. I followed the following code (ASPX Option). I haven’t been able to make this work in the validation stage because every time I update the aspx and
I’ve added some custom fields to the Company editing screen inside Configuration that I need to access in a graph extension and a custom service class. The fields were created as a DAC extension on Organization. These fields are used to store company specific URLs to third party APIs.The thing I’d like help with is coming up with a way to get to the current organization without hard coding the OrganizationCD into my FBQL query. This is what is working for me currently: var organization = SelectFrom<Organization> .Where<Organization.organizationCD.IsEqual<@P.AsString>> .View .Select(Base, "MY_ORGANIZATION_CD") .RowCast<Organization>() .FirstOrDefault(); Is there a better way to do this without using MY_ORGANIZATION_CD as a string? Originally, I was hoping I could use the CompanyID from PXInstanceHelper.CurrentCompany but IntelliSense suggests it isn’t possible to query for records using the CompanyID column. Ideally, I’d like somethi
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.