Hi,
I have created several tables with either int of Guid as the type for Primary key. I used the RAD tool to generate UI.
I noticed that the "history" modal, shows no data for tables where Guid is the primary key type. For int its working fine.
Is this a known issue?
Regards, Vikas
Hi,
I have a requirement to create a transaction is "Inactive" state on my FullyAudited entry like an empty tax return via a background job.
Once the user prepares and submits the record, I want to log the "CreatedBy" as the user who made the submission.
I was referring to this - https://aspnetboilerplate.com/Pages/Documents/Entities?searchKey=auditing#active-passive-entities. Not sure if my understanding for this is correct about this functionality.
Is there an example for above?
Thanks & Regards, Vikas
Hi i am following this guidance.
https://aspnetboilerplate.com/Pages/Documents/Javascript-API/AJAX
Problem: null is received in the controller method. It is hitting the right controller method.
Jquery code
action: function (data) {
var record = { id: data.record.integration.id };
abp.ajax({
url: '/App/Integrations/Register',
data: JSON.stringify(record),
}).done(function (data) {
abp.message.confirm(
'You will be redirected',
'Are you sure?',
function (isConfirmed) {
if (isConfirmed) {
window.location = data.url
}
}
)
});
}
Model
public class IdModel
{
int id { get; set; }
}
Controller method
[HttpPost]
public JsonResult Register(IdModel id)
{
string compCode = id.ToString();
string url = "";
if (!string.IsNullOrEmpty(compCode))
{
var t = new HmrcOauth()
{
State = compCode
};
url = t.GetAuthorizationUrl();
}
object json = new { Url = url };
return Json(json);
}
Please advice. I have already spent 2 days trying different techniques.
Thanks in advance.
Regards, vikas
Hi,
I am building an integration into an api. As a starting point I need to authorise the application.
Normally, following command from the controller works. return Redirect(url);
however, in my case I am executing an action from the jQuery action.
I have this snippet from the jQuery script, which is calling the controller correctly. text: app.localize('Authorise'), visible: function () { return entityHistoryIsEnabled(); }, action: function (data) { abp.ajax({ url: '/App/Integrations/Register', data: JSON.stringify({ id: data.record.Integration.id }), }); }
However, the ABP is expecting a JSON response and redirect fails.
If I move the controller code to Index(), it works fine.
Any advice on what command to use to redirect from tje jQuery script?
I can return the URL as JSON back to the script and redirect from there.
Reference: https://aspnetboilerplate.com/Pages/Documents/Javascript-API/AJAX
Many thanks.
Regards, Vikas
Hi,
I want to simply the design for some of my controllers and use the Repository directly from controller.
Is there an example snippet anyone can provide?
Many thanks in advance.
Best Regards, Vikas
Hi,
My project's Change log shows Namespaces instead of Entity Name.
Is there a way to fix this?
Also, the dropdown does not have the Objects available.
Note, My entities have entity history enabled with [Audited] tag and lines uncommented in *EntityFrameworkCoreModule.cs
Thanks for replying.
Regards, Vikas
Hi,
I want to add a table for maintaining Master Data - Example Currencies.
[Currencies] Id (PK) Code Symbol IsoCode NoOfDecimals
[CurrenciesText] Id(PK) CurrencyId(FK) LanguageId(FK) - from standard table DisplayName
If something like below can be achived using standard Languages(Under Administation) screen with the table as a source, that would be great.
[Currencies] Id (PK) Code Symbol IsoCode NoOfDecimals DisplayName LanguageId
Please advice?
This would make it really enterprise level.
Alternatively, I will have to use enums.
Best Regards, Vikas
Hi,
I recently purchased AspZero and was trying out the demo project before downloading the actual project.
I followed the "Getting Started" guide .
Project is setup and databse created in Sql Server.
After loggin in as admin/123qwe, there is no login and following json is displayed.
{"result":null,"targetUrl":"/Account/ResetPassword?UserId=1&ResetCode=63D95D4209&ReturnUrl=%2FApp","success":true,"error":null,"unAuthorizedRequest":false,"__abp":true}
Please advice.
Regards, Vikas