Bitrix - How to find last updated component or file in Bitrix - bitrix

I have updated one component file from the Edit Mode of Bitrix environment. I have written one statement and write exit to debug the code. But now I can't find the component which I have edited.
Is there any way to find last updated files or templates or component or any other way by which I can revert back that component?
I have updated component file from this page - CRM > Deals > Add New Deal page.
Any help would be appreciated.

If you edited CRM > Deals > Add New Deal page using "Edit page" button then check out /crm/deal/index.php file.
To check out what core files/system components were affected (if they were modified) you could use "Project Quality Control" tool:
Open Control Panel > Settings > Tools > Project Quality Control
Click "Release Project".
In checklist find "Project release" group and click "The system kernel was not modified".
Click "Run autotest".
Click "Detail report" link to see which core files was modified.
But the best way to figure out what files was modified is compare document root folder with the backup copy.
If you want to continue to edit the files then I recommend you to set up version control system (e.g. GIT).

Related

Copying and Renaming xhtml file to new file in JSF causing data does not load

I received an assignment to have a look at Java Server Faces project and maintain the existing code if possible. My background is ASP.net , and never made a Java program previously. The problem is like this : there is existing file code named policy_list.xhtml (with also several beans attached to UI component in the file) and lets say it attach to menu Policy List. If user click the menu, the policy_list.xhtml will show the list of Policy. I copied the policy_list.xhtml file and renamed it to a new file renewal_list.xhtml. And I created a new menu Renewal List and attach the link to renewal_list.xhtml. I did not make any changes to renewal_list.xhtml. However , when I click the Renewal List menu, the page did not show any data like the Policy List menu. There is no error shown in the page What is wrong with the Renewal List page. Is it the behaviour of JSF ? On the IntelliJ IDEA debugger, I have not found any error. However the Search button in the renewal_list.xhtml working fine just as policy_list.xhtml. All the action link in the dataTable does not work in renewal_list.xhtml. I guess I am missing as particular setup on the menu or else ? Any ideas ?
My God, I have to registered it on pages.xml . Now, its working. Thanks to the powerful search of IntelliJ idea.

Asp.Net Core 2 after publishing get error "Layout cannot be found"

After publishing the application I get the error:
"InvalidOperationException: The layout view '_Layout' could not be located. The following locations were searched:
/Views/Home/_Layout.cshtml
/Views/Shared/_Layout.cshtml
Microsoft.AspNetCore.Mvc.Razor.RazorView.GetLayoutPage(ViewContext context, string executingFilePath, string layoutPath)"
The Layout is there in the Views/Shared folder and the application works with it locally, so this must be something wrong with the publishing.
Unfortunately in the published app the views appear all contained into a single dll file and I cannot do anything to solve the problem.
Could be anything in my code that makes the publisher to forget to add the _Layout.cshtml view?
I have a reference to the layout in my _ViewStart.cshtml
That should be for all pages. Without Layout my app is doomed and I do not know what to do.
Ok After many tries I found the cause of why the publishing did not include my layout page! It was so tricky that I am amazed. I hope this helps other people!
When you right-click on the layout file (or on any other file) you have the menu with the option properties. I opened the properties of the layout file and I noticed that there you have an "advanced" option: "Compilation Action". My option was set to "none" that means the file was not compiled and therefore not included in the publishing. I put it on "Content" and tried the publishing again and all went well, this time the layout file was compiled and included in the publishing.
In my case the "Copy to output directory" was set to "Do Not Copy", I changed it "Copy if newer" and then it work.

Need help in 2017 R2 - 17.200.0401 modern UI Sitemap

I have created some new categories and added my screen under that category, do we have an option to put these newly created categories and sitemap structure into customization project or else we need to recreate manually in each instance.
Group 1 and Group 2 are the new categories I have created and linked some screen under it.
The steps are:
Add the page to the classic SiteMap (SM200520)
Add classic sitemap entry to your customization project sitemap section and publish it
Add your page to modern UI
In customization project editor SiteMap section click 'Reload from Database'
The Reload from Database step should add the Modern UI sitemap entry.
You can check if the modern UI were packaged in the customization project items (Menu->File->Edit Items). Project items of type SiteMapNode that deploy to modern UI will have XML elements/attributes prefixed with 'MUI' (ModernUI).
if we uncheck entry screen checkbox for GI screens, we are able to get the entry form in both Title Menu and as well as in Menu Item also. But, as these default Acumatica GI screens are in Hidden folder, they are not exposing in Add Menu Item popup, so I moved to Help folder
A combination of John's answer and HB_ACUMATICA's answer seems to be the more complete answer. The steps in HB_ACUMATICA's answer works, except if the classic Sitemap item is contained in certain folders (in my case, Finance/AR/Configuration/Manage), then it won't show up on the modern UI in the list of items to choose. If I moved it to the Help folder, then I could choose it. Anyone know what the criteria is for including an item in the modern UI item choice list?

Acumatica generic inquiry how to export more than one GI as xml

I know you can export one GI at a time to xml, I'm wondering you can select all user GI and export to XML as a backup.
Thanks
You can do this by creating a customization project and include all the generic inquiries you need in one package. The project can be exported and imported which includes all of your attached GIs. We do this already and works great. Do not forget to update from database when making changes before re-exporting.
Simple list of steps if you have not created a project before: (using 5.30)
System > Customization > Customization Projects > create a new project (save)
Click on the hyper-link for your project name to open the customization project window.
Click on Generic Inquiries
Click the add (plus symbol) and check/select all of your GIs and click save. Note the 'RELOAD FROM DATABASE' option. Do this step when you make changes to your GI that you need to update into your package as this does not happen automatically when saving changes to your GIs.
You should see the list of Generic Inquiries include all that you selected
In the upper right under File (still in the Customization project window) select 'Export Project Package'. A zip file will be downloaded from the site which includes all of your XML for each GI

How to restore "view item" web part for Sharepoint List

I'm using Sharepoint 2010 foundation. We have a list available on the site that we use to manage work items. Normally, the options to view detailed list content are "View Item" and "Edit Item". It looks like someone accidentally deleted the list view for the "view item" page, so that when anyone opens an item, all they see is the list item title and a big blank box in the middle. Does anyone know how to restore the list view for a single list item so that we can view the item contents?
Alright; if your form was a non modified-form without further extensions or modifications you have only a few clicks ahead of you, otherwise: you better have a backup.
Disclaimer: I am using the german version of SPD, but the controls are at the same positions as in the English version. See screenshots for clarifications
Open up SharePoint Designer 2010
Open your SP Site
Open the list in question
Click on "new" (see Screenshot below)
Fill out the form (Enter name, check form to view, and default form)
Boom - you're good to go again. Save it.
You can download SPD here: http://www.microsoft.com/en-us/download/details.aspx?id=16573

Resources