Good day!!
I need autocomplete in yii2 in one text input. I have two database and I need to connect to the second database to get the value on the table of that database.
Can someone please show me how.. Just use an example. Thank you!
Related
I am working on live support project for a web site. I just wrote the frontend and I created the table that I need in SQL Server and then I made a connection between SQL Server and my ASP.NET MVC project.
I watched many videos and I didn't get the part which I will start get the data from the models which are created when I made the connection I talked about.
To be clear: I wrote two Divs in web page one for the sender and one for the receiver and I give messages a variable called ̰"destination" in DB so if the value is 0 it will be insert the text in sender's div and if the value is 1 it will be insert the text in receiver's div.
The problem that I know the logic but I don't know how to apply it. Please can anyone help me and tell me how to do it? Or what is the Technique that I should work with?
You should start looking into Entity Framework to get the data from the database. I think for now you should use Database First approach which is very easy as compared to Code first approach.
To start with Database first just add new item and select ADO.NET Entity Model . This will launch the wizard where you can select EF designer from database and then you can give the connection string and all the databse you want to use
Refer below link for explanation.
http://debugonweb.com/2020/01/crud-operation-using-database-first-approach-asp-net-mvc/
do you guys know what is the best method to import data from any website to put in webi report. i just want to capture the value that displayed in the web, like web scraping/crawl. As example, getting the oil price from https://www.oil-price.net/
Using Excel/powerBI is very easy to do this as it have power query features but I didnt found how to do this in WEBI
FYI, the website is just an example. just want to show that i want to take the value that similar like that oil price website
OR is it that we need to use another program to capture the data and store in SQL database and create new universe? Really appreciate if can share link or references of how to do that.
Thanks!
I'm looking in to learning some coding and have a small project in mind to begin with,
To begin if anyone could point me in the direction of some good VB.net resources I would be very appreciative,
On a more specific note, I have a few particular questions:
I have a form with several text boxes, how would I go about using this form to establish a connection to an SQL database whereby the boxes on the form are used for (1, servername\instance. 2, database name. 3, sql login. 4,sql password) triggered by pressing the 'connect' button
I also have a form with a single text box, I would like to be able to query a specific table for records where based on primary key = contents of text box. On the form, I'd like to have other text boxes which link to columns on the table and return the value of the associated record.
As a development of the above, I would like to then have a button that writes any changes to the information back on to the record in SQL.
If anyone is able to offer any advise or insight on how I would begin going about this, that would be great.
I would much rather sources of how to learn to do the above that code if possible.
Do several thing or post actual code where you are stuck. it sounds like you will ask about how to put values on Database also. honestly want to say, if you research little bit what you want you will definitely get it. first google and then ask.
because you are in learning phase try to gather as much as knowledge rather copy paste code.
HINTS:
1) set your web.config with connection to sql
see: MSDN document
https://msdn.microsoft.com/en-us/library/ff400235.aspx
2) Then start coding UI
3) on UI you have different boxes, on each button click you should handle separately
search on:
How to open SQL Connection on button click
How to insert new records into a database
and lastly if you came across error then post your issue here.
Good Luck
I'm new at Yii, and I'm trying to generate some reports with some user input (fill the form and then click 'generate'). I want to query my database to look for some transactions on a date range, but I really don't know how to do it.
Does anyone have any examples I might look at?
Thanks in advance. I would really appreciate the help. Regards.
In Yii, you can create a table and using the Gii crud generator to create a form and view. This view could be considered a report.
what kind of report do you want exactly?
Commonly reports are taken by existing created transaction only.there is no need to create any input fields to reports.As by the answer of 'jarchuleta' you can create forms using crud and For date range report you can check this, question may be irrelevant but the code i posted is for date range report
I wanna create a aspx form where it should connect with a HTML form and how should i display it in vb.net..
also when click the link, the form should fill with data automatically where the data should retrieve from microsoft sql database and display it without any error...
Question is kind of broad one. But you can use asp.net form view to show the data from the database and you can access it from the server side code(VB.Net).
http://www.learn-asp.net/asptutorials/FormView.aspx here is a good article for you.
I did not understand very well! but I guess you want to create a ASP.NET page with vb.net.right?
If I'm correct, steps are depend on your version of Visual studio but the only thing you need is create website project!
Second question:You should First retrieve data from your database
Here is good article: Click.
If I misunderstood, let me know!