vTigerCRM 5.4 New entity and field behavior - vtiger

I’m a newbie on vTiger development and I’m wondering if this feature is possible to implement:
I would like to have a new entity on vTiger for Zip Code. This entity will have the Zip Code, Street name, Neighborhood, City and State.
I would like to link the Zip Code on Contacts module to this new entity and, when someone pick up a zip code from the picklist, it will fill automatically the Street, City, State fields on Contacts.
This should work on New Record or Editing Records.
Any clue about this?
Thanks in advance and best regards,

creating modules in vtiger easy. check vtiger payment module . bye following this sample module you willl get an idea about module development. Also have a look on developer guides

Related

What is the best way to build Django model?

I want to make a website that gives a visualization of football game statistics.
Functionality: The user checks a list of games. Selects game to see details. Can select a particular player. If there is no game he/she is interested in, the user uploads a datafile of the game and adds it to the main list of games.
I have a script that cleans data and gives me DataFrame with columns:
['Shots', 'SCA', 'Touches', 'Pass', 'Carries', 'Press', 'Tackled', 'Interceptions', 'Blocks']
if I do the Django model is it ok if I simply do model with these columns, or do I need to do a proper database with separate tables like:
Is my UML is ok or do I need to fix something?
here is link to my UML https://drawsql.app/xml-team/diagrams/football-game-stats
You don't need to manually create tables and relations in your database, Django can take care of that for you.
It has been explained in detail here
I suggest following these simple steps for building Django Model. I always did by following these steps.
Create Django Application
Add the Posts Model
Update Settings
Make Migrations
Verify Database Schema

Older Power-BI pbix using a SharePoint-Online list that has had new fields added

I have a Power-BI dashboard that was created some time ago. It’s data source is a SharePoint-Online list. Since the Power-BI dashboard was created, several new fields have been added to the SharePoint list. Now I am being asked to add a new page to the dashboard that reports on those new fields. However, I have not found a way to get the existing Power-BI list/dataset to show the new fields.
Refreshing the data does refresh the values, but refresh does not add the new fields.
I’ve spend the last 4 hours looking on the internet for a solution. The only thing I have been able to do so far is to attach the list again with a different name- the new fields DO show up when I do this. (I can’t just replace the older Power-BI list/dataset because there have been several calculated columns and measures added.)
I can work with this and create the report, but is this the only way? It doesn’t seem like it should be.
Any help would be appreciated! Thank you!
(I'm using Power BI April 2021 and Sharepoint Online)
So, it looks like there's no good answer to this issue. I found that adding another instance of the reference Sharepoint list, that included the new columns, did work (however inelegant). That seems to be the best direct answer for times when the older pbix file must continue to be used.
What I ended up doing, though, was to create a new separate pbix file which included the latest version of the Sharepoint List. This was the best solution for my organization since it will allow us to be more focused on the specific manufacturing processes involved.
Thanks to #Jon and #Alejandro for their efforts to help!
If you have access to PowerAutomate you could refresh the dataset creating a flow so that given a certain time (say, once or twice a day) the dataset gets refreshed with the new created items.
Otherwise if you are working with the service version of Power BI you can program a refresh of the dataset directly from the workspace going to the settings of the dataset. You would have to have a gateway set for that which could be in personal mode or not.
Also if you want to update the data in the service version you could do it manually too in the workspace.

Duda con opencart

I'm developing a TPV App for OpenCart to my final project of my advanced cycle called Administration of network systems.
Going into the study of the database and when programming, I have problems with the CART table. It is necessary column sesion_id in order to see what the client is adding to the cart. How can I get that value to add it to my final project?
You are able to reach the '$this->cart' variable from anywhere this library (https://github.com/opencart/opencart/blob/master/upload/system/library/cart/cart.php) contains all you need most of the time. If you want to create your own queries you are able to reach the session id through '$this->session->getId()'.

Create new record based on old one

I'm newbie here and I'm building CRUD app on Ruby on Rails ( ruby 2.1.5, rails 4.1.6 ) with ActiveScaffold (latest from git repo). I've done CRUD actions successfully, but now I want to create new record, based on old record to improve speed of filling.
How can I add "edit and create new" link to the right (where show and delete links located, that will create new record with same fields as in selected record, so I can fast edit some fields (date for example) and create new record?
Eureka! All that I need was active_scaffold_duplicate gem.
Also some search by word "duplicate" in ActiveScaffold group. Sorry for such easy question, my brain needs to relax :)

Django Awaiting Appoval

If you want user to submit say articles to your website but you want to approve these articles before they are added to a list of articles, how would you go about doing so?
The only method I can think of is to have 2 databases; one for 'awaiting approval' and another for 'approved and ready to be displayed'. However, my issue is whether there is a fast method to go about transferring the information between the two databases? I only know about doing this manually.
Or is there already a Django module that handles this?
Thank You for any help.
As jordi has said, add an extra field, but you might also want to write a custom manager for your table that selects posts according to status.
See the Django docs: https://docs.djangoproject.com/en/dev/topics/db/managers/ where they set up a manager that filters on sex="M" to only return Male people. This makes your code neater, and means as long as you go through the right manager you'll not have to keep remembering to test for state="Approved" all the time.
If you want to get more complex, the thing you are doing is called "Workflow" and there are django and python packages that implement this - but it gets very complex very quickly...
Just add a column to the database table called status
1 = waiting
2 = approved
3 = denied