Posts

excel - Using bold cells to pull data in the same row onto another page -

I have a large workbook that adds new pages. These pages are all names such as Week (X). I have a cycle through macros and the data is gathered to display on the summary page. However, I have to be a page where I can show some data. This macro is going through all the "WEEK ()" pages and columns in bold C. Looking for Once it sees that I want to copy it to cell C: e and convert it to D cells: F on the new page. I have a great experience but I need some help on this. I can also include the code, this is my first posting, so I will post it below. Sub Front_Page () In the form of a short while, for each of the worksheets, I name & lt; & Gt; "Summary" and ws.Name Option Clear sub Front_Page () long lasting longer, I work as long as lastrow = ActiveSheet.Range ("D1000"). End (xlUp). Line 1 worksheets for every 1 if ws.Name & lt; & Gt; "Summary" and ws.Name

Converting variable in javascript to a CSV file -

Basically I have a string variable that is composed of two other variables separated by commas: code> items = "pencil"; Zodiac = 5; Entry = item + "," + amount; * Export entry in CSV Then the "entry" variable should be in the correct format to save as a separate file from a comma. Is there any such command that will take this variable and save it as a CSV or any other format which can be opened easily for use later? The entry variables will change and new information will need to be added to the CSV file if it already exists. So we say that if we also had: items = "paper"; Zodiac = 25; Entry = item + "," + amount; Export Entry for CSV should be the resultant CSV file: pencil, 5 paper, 25 I have other questions There is a bit of searching through, but most people are trying to do more complex things (eg, dealing with server vs. client-side issues), while I'm trying to explain how I get data I am on my own compu...

asp.net mvc - ASP Web API method access from regular MVC controllers -

I have no such complex solution, which I have applied among others using ASP Web API. I have 3 projects that are important for my solution. One is a WebAPI that has only API methods. The other two are backend and frontend for my application. I use the backend SPA approach which is loading most of the blank shells for the scene and uses AGAC to fill everything with AJAX. Because of the concerns of SEO, the decision of the front was applied in more traditional ways on the other hand, most of the goods have been presented to the server side. My question is, is it possible that web API methods should be forwarded to the front end controllers and to see the results? There are no samples on this? I do not see a point repeating most code in regular controllers. I am searching but I can not find much. If you have to call the web API service, the C # code (MVC controller or elsewhere), the HTTP client Or webclient can be used to call on HTTP. If you just need to reuse the code, it ...

c# - Set background image of app by a button click event -

When a button is pressed, the background image of the app can be changed to an image in the project. I have tried to set the background image by modifying the visibility of an XAML image control, whose source points to the image in the project. But the problem in this case is that the image hides some XML controls. At the visibility set = right, I tried to set the "back to" and opacity options, but they have no advantage. Please indicate that if this problem is resolved or help me get the right image XAML property to get my solution. You can set VisualBrush to set your image as background You can use your basic element (in this case grid) in your code, press the button BackgroundImage set the property to your image path and if you have some kind of change notification for this property then The image will be replaced. & lt; Grid.Background & gt; & Lt; Visualbrush Tile Mode = "None" Opacity = "{Bounding Background Opacity}" ...

hibernate - Adding Envers to an existing database -

I have a hibernate-based app in production with large databases. I want to add auditing to this app in two entities (two tables) Is required, and I have decided to go with the anchors. Each INSERT adds a new record to the auditor's audit, to update or delete the table. If I supported the launch of the anchors from the beginning of the application, then the population of the audit tables will be populated at the time of INSERT. The Envers documentation is very slim, and does not mention anything about adding an existing application to Envers. If I only make Envers support and related audit tables, that will start empty, so when I update an existing unit, a record to record new values ​​in the Audit Tables But I'll lose the previous values. How do I add Envers support in an application with an existing database? There is currently no built-in solution in it. A "Script" script (or manually created), with a combined audit record to force a "0...

c# - Linq most efficient method -

I need to use the Linq statement as the following var data = Db.tbl1 Ou (w = & gt; client eids == client end and source = source == source); I have a dropdown from which I get the source dropdown values ​​as follows: All NewsPage web The thing is that there are valid values ​​for newsletters and web sources. Not everyone does all mean that a record can be newspapper or web If they select all, then how do I modify whitesource such as newspapers or web of all the tools I mentioned below I can do 2 different questions, but not: if (source == "all") {var data = db.tbl1. Where (w = & gt; Customer ID == clientid); } And {var data = db.tbl1. Where (w = & gt; Customer ID == Client end and source == source); } I like doing this in 1 query because I have a query that is more complex than the ones shown above. Thank you in advance @mattammo reply is acceptable, but I like I broke them out a bit IMO is a little more readable. var data = db.tb...

mysql - PHP Show/hide link -

I have a function that prints articles from my database and edit, add, show / hide shows / In the Hide Link I want to be able to hide / show that particular article. How can I do it? Edit: I need to be able to hide / show in my backend page and it needs to be hidden in front page function displaynews () {$ data = mysql_query ("SELECT * FROM News ") // query or die (mysql_error ()); While ($ info = mysql_fetch_array ($ data)) {$ id = $ info ['id']; Look & lt; Br> & Lt; A href = edit.php? Id = $ id & gt; Edit & lt; / A & gt; & Lt; / A & gt; & Lt; A href = 'addnews.php' & gt; Add & lt; / A & gt; & Lt; A href = '#' & gt; Show / Hide & lt; / A & gt; & Lt; Br> & Lt; Strong & gt; ". $ Info ['date']" & lt; / Strong> & Lt; Br> ". $ Info ['news_content']" & lt; Hour & gt; & Lt; Br> "; // print article and date...