ng-repeat with NeoCms - Forum

Forum Navigation
You need to log in to create posts and topics.

ng-repeat with NeoCms

Hi @luishp Happy holidays and congratulations on the new version,

I was playing with neoCms (I love it!) and doing some tests with ng-repeat

The thing is, I can't think of a way other than with jquery or javascript to show again the data in the modal window.

Is there a quick way to reuse the subroutines already made from neoscript to display it?

I leave you the example with the customers database as in your example so you can see what I mean.

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

@emmanuel-fernandez yes, of course!
Please take a look at how I have simplified your sample app.
I have just added "record in data" in the Properties Panel advanced section and deleted all innecesary subroutines.
It's that easy!

Regards

Uploaded files:
  • You need to login to have access to uploads.
Vadim has reacted to this post.
Vadim

Hi @luishp ,

the example I sent already had 'record in data', but in the html property as a class, that worked.

I meant a quick way with neoscript commands for showing the complete record when pressing the 'view' button.

 

 

Hi again  @luishp ,

This is a possible solution for the 'view' button and open content in the modal window.

The next step, paging to be able to see for example from 5 to 5 instead of all the records.

I'm not familiar with angular, I guess there will be some simple way to do it.

 

Uploaded files:
  • You need to login to have access to uploads.

Hi @emmanuel-fernandez

Sorry, I was in a hurry and didn't understand your question correctly.
Your solution seems to me very smart!
I have tried other solutions (including using ng-click instead of onclick) but with no luck.

Thank you for sharing :)

emo has reacted to this post.
emo

@emmanuel-fernandez by the way, you can speed up content rendering a lot using Refresh command.
Just add a callback subroutine to neoCmsGetOrderedCollection. Then put Refresh on that subroutine.

Regards

Hello @luishp , as a Christmas gift, there goes a demo working with neocms and ng-repeat with pagination ;-)

Regards

 

Uploaded files:
  • You need to login to have access to uploads.
luishp, Vadim and Darbdenral have reacted to this post.
luishpVadimDarbdenral

Thanks for sharing @emmanuel-fernandez!

javadrajabihakami has reacted to this post.
javadrajabihakami