Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC

Activities of "PMS"

Hi ,

Getting error after login to the swagger.. We had not changed the code of startup file or related to swagger.

Kindly check!!

Hi ,

When I add language in "app/admin/languages" then why new language xml file not generate?

and when chnage newly created language from the menu gives the error in browser console.

Can you please give the stpes how we can resolve this? and use newly created language in application?

Thanks In advance.

Hi ,

I am getting issue when adding grouping the to primeng-datatable. same like https://www.primefaces.org/primeng/#/table/rowgroup

Please suggenst any example or demo so that this datatable behaves like grouping (https://www.primefaces.org/primeng/#/table/rowgroup) primeng-datatable like below and its has to be maintain the functionality like pagination sorting etc in default primeng-table

**here is my code of angular componate html file **

<div class="primeng-datatable-container col-12" [busyIf]="primengTableHelper.isLoading"> <p-table #dataTable (onLazyLoad)="getCruiseDefaultSeasons($event)" [value]="primengTableHelper.records" rows="{{primengTableHelper.defaultRecordsCountPerPage}}" [paginator]="false" [lazy]="true" [scrollable]="true" ScrollWidth="100%" [responsive]="primengTableHelper.isResponsive" [resizableColumns]="primengTableHelper.resizableColumns"> <ng-template pTemplate="header"> <tr> <th style="width: 130px" [hidden]="!isGrantedAny('Pages.CruiseDefaultSeasons.Edit', 'Pages.CruiseDefaultSeasons.Delete')"> {{l('Actions')}}</th> <th style="width: 150px" pSortableColumn="departureYear"> {{l('DepartureYear')}} <p-sortIcon field="cruiseDefaultSeasons.departureYear"></p-sortIcon> </th> <th style="width: 150px" pSortableColumn="seasonGroup"> {{l('SeasonGroup')}} <p-sortIcon field="cruiseDefaultSeasons.seasonGroup"></p-sortIcon> </th> <th style="width: 150px" pSortableColumn="departureDate"> {{l('DepartureDate')}} <p-sortIcon field="cruiseDefaultSeasons.departureDate"></p-sortIcon> </th>

                            &lt;/tr&gt;
                        &lt;/ng-template&gt;
                        &lt;ng-template pTemplate=&quot;body&quot; let-record=&quot;$implicit&quot; let-rowIndex=&quot;rowIndex&quot;&gt;

                            &lt;!-- &lt;ng-container *ngIf=&#39;checkGroupInArray(record.cruiseDefaultSeasons.seasonGroup)&#39;&gt;
                                &lt;tr &gt;
                                    &lt;td colspan=&quot;4&quot;&gt;
                                        {{record.cruiseDefaultSeasons.seasonGroup}}
                                    &lt;/td&gt;
                                &lt;/tr&gt; 

                              
                            &lt;/ng-container&gt;-->
                            &lt;tr&gt;

                                &lt;td style=&quot;width: 130px&quot;
                                    [hidden]=&quot;!isGrantedAny(&#39;Pages.CruiseDefaultSeasons.Edit&#39;, &#39;Pages.CruiseDefaultSeasons.Delete&#39;)&quot;&gt;
                                    &lt;div class=&quot;btn-group dropdown&quot; dropdown container=&quot;body&quot;&gt;
                                        &lt;button class=&quot;dropdown-toggle btn btn-sm btn-primary&quot; dropdownToggle&gt;
                                            &lt;i class=&quot;fa fa-cog&quot;&gt;&lt;/i&gt;&lt;span class=&quot;caret&quot;&gt;&lt;/span&gt;
                                            {{l("Actions")}}
                                        &lt;/button&gt;
                                        &lt;ul class=&quot;dropdown-menu&quot; *dropdownMenu&gt;
                                            &lt;li&gt;
                                                &lt;a href=&quot;javascript:;&quot;
                                                    (click)=&quot;viewCruiseDefaultSeasonsModal.show(record)&quot;&gt;{{l('View')}}&lt;/a&gt;
                                            &lt;/li&gt;
                                            &lt;li&gt;
                                                &lt;a href=&quot;javascript:;&quot;
                                                    *ngIf=&quot;permission.isGranted(&#39;Pages.CruiseDefaultSeasons.Edit&#39;)&quot;
                                                    (click)=&quot;createOrEditCruiseDefaultSeasonsModal.show(record.cruiseDefaultSeasons.id)&quot;&gt;{{l('Edit')}}&lt;/a&gt;
                                            &lt;/li&gt;
                                            &lt;li&gt;
                                                &lt;a href=&quot;javascript:;&quot;
                                                    *ngIf=&quot;permission.isGranted(&#39;Pages.CruiseDefaultSeasons.Delete&#39;)&quot;
                                                    (click)=&quot;deleteCruiseDefaultSeasons(record.cruiseDefaultSeasons)&quot;&gt;{{l('Delete')}}&lt;/a&gt;
                                            &lt;/li&gt;
                                            &lt;li&gt;
                                                &lt;a href=&quot;javascript:;&quot; *ngIf=&quot;entityHistoryEnabled&quot;
                                                    (click)=&quot;showHistory(record.cruiseDefaultSeasons)&quot;&gt;{{l('History')}}&lt;/a&gt;
                                            &lt;/li&gt;
                                        &lt;/ul&gt;
                                    &lt;/div&gt;
                                &lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;
                                    &lt;span class=&quot;ui-column-title&quot;&gt; {{l('DepartureYear')}}&lt;/span&gt;
                                    {{record.cruiseDefaultSeasons.departureYear}}
                                &lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;
                                    &lt;span class=&quot;ui-column-title&quot;&gt; {{l('SeasonGroup')}}&lt;/span&gt;
                                    {{record.cruiseDefaultSeasons.seasonGroup}}
                                &lt;/td&gt;
                                &lt;td style=&quot;width:150px&quot;&gt;
                                    &lt;span class=&quot;ui-column-title&quot;&gt; {{l('DepartureDate')}}&lt;/span&gt;
                                    &lt;span *ngIf=&quot;record.cruiseDefaultSeasons.departureDate&quot;&gt;
                                        {{record.cruiseDefaultSeasons.departureDate | momentFormat:'L'}}
                                    &lt;/span&gt;
                                    &lt;span *ngIf=&quot;!record.cruiseDefaultSeasons.departureDate&quot;&gt;-&lt;/span&gt;
                                &lt;/td&gt;

                            &lt;/tr&gt;
                        &lt;/ng-template&gt;
                    &lt;/p-table&gt;
                    &lt;div class=&quot;primeng-no-data&quot; *ngIf=&quot;primengTableHelper.totalRecordsCount == 0&quot;&gt;
                        {{l('NoData')}}
                    &lt;/div&gt;
                    &lt;div class=&quot;primeng-paging-container&quot;&gt;
                        &lt;p-paginator rows=&quot;{{primengTableHelper.defaultRecordsCountPerPage}}&quot; #paginator
                            (onPageChange)=&quot;getCruiseDefaultSeasons($event)&quot;
                            [totalRecords]=&quot;primengTableHelper.totalRecordsCount&quot;
                            [rowsPerPageOptions]=&quot;primengTableHelper.predefinedRecordsCountPerPage&quot;&gt;
                        &lt;/p-paginator&gt;
                        &lt;span class=&quot;total-records-count&quot;&gt;
                            {{l('TotalRecordsCount', primengTableHelper.totalRecordsCount)}}
                        &lt;/span&gt;
                    &lt;/div&gt;
                &lt;/div&gt;
                
               

ts file code :--

getCruiseDefaultSeasons(event?: LazyLoadEvent) {
        if (this.primengTableHelper.shouldResetPaging(event)) {
            this.paginator.changePage(0);
            return;
        }

        this.primengTableHelper.showLoadingIndicator();

        this._cruiseDefaultSeasonsServiceProxy.getAll(
            this.filterText,
            this.primengTableHelper.getSorting(this.dataTable),
            this.primengTableHelper.getSkipCount(this.paginator, event),
            this.primengTableHelper.getMaxResultCount(this.paginator, event)
        ).subscribe(result => {

            result.items.forEach(element => {

                this.customSeasonGroupArray.push({
                    id: element.cruiseDefaultSeasons.id,
                    departureYear: element.cruiseDefaultSeasons.departureYear,
                    seasonGroup: element.cruiseDefaultSeasons.seasonGroup,
                    departureDate: element.cruiseDefaultSeasons.departureDate
                });

            });
            this.isAddedInArray=[];
            this.primengTableHelper.totalRecordsCount = result.totalCount;
            this.primengTableHelper.records = result.items;
            this.primengTableHelper.hideLoadingIndicator();
        });
    }

even I put the boolien function for the check true or false then give error..

ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. its check value in grid loop ... true or false

Here is the code for the **GroupInArray **

checkGroupInArray(name: string): any {
        console.log('name', name);
        console.log('this.isAddedInArray', this.isAddedInArray);
        console.log('this.isAddedInArray.some(x => x === name)', this.isAddedInArray.some(x => x === name));

        if (this.isAddedInArray.some(x => x === name)) {
                 return true;           
        } else {
          
            this.isAddedInArray.push(name);
            return false;
        }
    }

Thanks in advance !!

Hi,

I changed code based on this changes https://aspnetboilerplate.com/Pages/Documents/Timing we have in my setting page we have time zone drop down.

We need that each user see dates in format which is standard for his regional settings.

We have date formate dd.MM.yyyy.

Can you please tell me how we can achive this? for example..... If user is from Europe then my aplication date format need to be dd.MM.yyyy . If user in India then my aplication date format need to be MM/dd/yyyy .

Hi ,

Please give me the steps or somthing related design or code like How can I change the grid design.

Find the attached images.

This is my default grid design. Want to change like this

When we update the one table from the power tool why it's regenerate new the code in another table's classes and angular files whatever we have done custom earlier its replaced with the new code.

  1. Why it's not updating that one particular table code.
  2. Why its update / replace with new code( old custom code replace by a new one ) in another table classes and angular files especially service.proxy files methods as well. ( for example I have xyz table and updating that table with tool then why its updating abc(another table) and in abc table entity I haven't update anithing .. same as In file its also update xyz table code but why its update abc table custom code to with new one)
  3. When I create/update one table using the tool then why gives error in another table(I haven't update entity as well ) error?
  4. Why Its generate a new table(this table was also created by the tool) which is already into the DB.

Please check screen short.

Question

In database we have AbpLanguages table where our application store UI texts. When I go on Language texts page to change language from base language to source language I can see on Source drop down our application and I can easily change all languages. All this is stored in AbpLanguages table. I would like to make copy of AbpLanguages table and call it AbpLanguagesUserData table. Intention is to use your interface to store some multilingual data in it. Please give me direction what to do to have this table data listed in Source dropdown. We will add English version data to this table on separate page, and would like to use your interface to maintain other languages.

Hi,

In HostSettingsAppService I am doing the code update the setting values to the database.

In my database there is value of my GoogleAPIKey

While I am using this code for the update value App.GeneralSetting.GoogleAPIKey await SettingManager.ChangeSettingForApplicationAsync("App.GeneralSetting.GoogleAPIKey", settings.GoogleAPIKey);

then I am getiing this error please give me solution asap.

 Abp.AbpException: There is no setting defined with name: App.GeneralSetting.GoogleAPIKey
   at Abp.Configuration.SettingDefinitionManager.GetSettingDefinition(String name) in D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingDefinitionManager.cs:line 48
   at Abp.Configuration.SettingManager.InsertOrUpdateOrDeleteSettingValueAsync(String name, String value, Nullable`1 tenantId, Nullable`1 userId) in D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingManager.cs:line 320
   at Abp.Configuration.SettingManager.ChangeSettingForApplicationAsync(String name, String value) in D:\Github\aspnetboilerplate\src\Abp\Configuration\SettingManager.cs:line 218
   at Abp.Threading.InternalAsyncHelper.AwaitTaskWithPostActionAndFinally(Task actualReturnValue, Func`1 postAction, Action`1 finalAction) in D:\Github\aspnetboilerplate\src\Abp\Threading\InternalAsyncHelper.cs:line 35
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location where exception was thrown ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot)
--- End of stack trace from previous location where exception was thrown ---
   at Nito.AsyncEx.Synchronous.TaskExtensions.WaitAndUnwrapException(Task task)
   at Nito.AsyncEx.AsyncContext.Run(Func`1 action)

Is it possible that new tenats after creation have admin role disabled.

When I run power tool I have menu position drop down. By default there are two options, Root and Administartion. I asume this two values are pulled from menu structure. Where in code I can change and add aditional options so that when I run tool again I have other options to choose from.

Showing 11 to 20 of 25 entries