"Save Site as Template" Error when using LookupSite columns - visual-studio-2013

After long search on the web i could not figure out why i have been facing wired behaviour today with my SharePoint Site.
I explain,
I have a Site Collection (Blank Site Template) which contains lists content types and site columns.
I have no specific configuration in my web app and no special configuration in my site collection.
When i tried to save Site as Template i got error telling there was a problem with a site field (which was a site colum of type LookUp).
P.s: I have a list based on a content type which is based on that site column
When i removed that site column the operation of template creation succeded, which is kind of wired.
Has anyone faced this before? Can anyone reproduce this issue? and how can i find a workaround to this issue because i need that column to be of type lookup.
Can anyone help me please?

This is a know issue with "Save Site As Template", this operation is not full fidelity Because as you said you can do it if you add the Site colum from SharePoint (from The U.I) and not from Visual Studio...
Here, you can deduct that this issue is related to Visual Studio and What is happening behind the deployment Action...
This Problem Has many Workaround Solutions:
First, you can see the deployment order of your content types and your lists etc. in the .Package file (Design Mode), there you must find the elements in a precise order, for example the Parent SiteColumn and its related content type and list(instance and definition) must come before the child siteColumn (The One containing the lookup) to let SharePoint provison the dependent Fields in the correct order. This action is more detailed in this Post
Secondly, as in this link you need to put the OverWrite Attribute in the Elements.xml of the SiteColumn with the lookup, your Elements.xml should look like something like This
<Field
ID="{c2f3c9d3-2433-45d5-89a2-4899dc9642f1}"
Name="FieldName"
DisplayName="FieldDisplayName"
Type="Lookup"
List="Lists/YourList"
ShowField="FieldToLookupOn"
Overwrite="TRUE"
Required="FALSE"
Group="Custom Site Columns">
</Field>
And Finally, There is one more work around, it's about to try to BackUp then Restore the site using PowerShell Commands.

Related

Microsoft crm dynamics legacy web interface app

I'm very new to Microsoft CRM, so please fix me if i'm wrong.
I have a business app that has the old web interface.
I don't want to setup a new solution for a client and provide a new api.
A want to reuse what is already there and adjust what data I will get when I request some project query.
My problem is that I cannot find where the schema is defined.
Can someone point me where to look for it?
Right now the api is working and I can retrieve data without problems, but there are some missing fields that are present CRM and not accessible via api. And my goal is to provide those fields
Thanks
go to make.powerapps.com
on right hand side select your env (dev/Test/Prod)
after that select solution on left hand side
then scroll down complete list you will find default solution
once you visit default solution, It hold almost entire system schema and so on. For example tables, it's fields and so on.
there are many other ways, but this should be a good starting point.
Note: It is not recommended to make changes directly under default solution, In fact it is bad way of making changes.

Bug on the javascript to retrieve data from a Quick View CRM 2015 Rollup 1

I have trouble retrieving a value from a Quick View (as per quick view i mean show the related entity details in a parent entity, eg. primary contact email address on the account).
The usual way to retrieve those is by the sdk syntax:
Xrm.Page.getControl("contactQuickForm_contactQuickForm_contact_mobilephone");
I tried this approach but now the result is an empty control. Anyone had a chance to see this defect in the new rollup? I troubleshoot a little around it, including removing all the controls from the page and scroll through the list to confirm that the control wasn't actually there and i wasn't making any syntax errors.

Access 2013 web app delete relationship

In an Access 2013 Web App, I created a relationship by changing a field type to "lookup" and set a related table/field. Now I want to remove the relationship. Whenever I try to change the field type to anything besides "lookup", it tells me I must delete the relationship in the Relationships menu, which doesn't exist in a Web App.
The MS support pages just link back and forth without ever answering this glaringly simple issue.
MS Support Instructions for relationships in Access 2013 (not web apps)
How to create a relationship in an Access 2013 Web App (not delete it)
Good question. I agree that the message we display is a little misleading because the instructions only apply for Access desktop applications. I'll see if we can perhaps change that message. I think it is shared across desktop and web app but I'll ask around. I'll see if we can maybe update the help content articles too. I can't make promises of course, but I'll check on that too.
In any case, to delete an established relationship in an Access 2013 web app, you'll have to delete the lookup field itself. If you need to keep the existing data for some reason, you could temporarily create a new column in the table, use a data macro to copy all of the contents from the lookup field you want to delete into the temp column, and then delete the lookup field itself. You could then copy that data from the temporary column into a new column if need be.
I hope that helps.

what is the correct approach in order to host / integrate / show my existing MVC3 project inside orchard?

I've an existing MVC3 project that implements a certain functionality, this project has it's own views, and a separate Database.
now I'm required to use the same functionality inside one of my orchard project,so I thought that I can host this solution in somewhere and view it inside an iframe or something.
Am I thinking right?,
is this the correct step to take in order to achieve this requirement inside Orchard?
to make it more clear, all I need to do is to view this solution and interact with it's controls and views from a hosting page inside orchard, and the subsequent requests should be handled by my solution in order to hit it's own data store and get back with the requested data in order to be displayed to the user.
any help would be appreciated.
Update:
thanks for Bertrand Le Roy for his answer, I can now view my solution inside my
orchard website.
I came in to one more HUGE problem, which is that my application can no longer connect to my external database.
I've a DB that is hosted in some where else, and I'm using EntityFramework to deal with it.
the problem is that if I put the connection string inside my module web.config, or main orchard web.config, I run into several types of errors like:
"System.Reflection.TargetException: Object does not match target type."
or
"System.Data.MetadataException: Unable to load the specified metadata resource."
My question is: How could I pass my connectionstring correctly to my solution, assuming that I'm using Entity framework as my ORM.
Many thanks.
You will need to put it into a module.
You will have to move route definitions to a Routes.cs file (look at any existing such file for examples).
You will also need, in order to access your data store, to opt out of the ambient Orchard transaction around the data access code (using (var scope = new TransactionScope(TransactionScopeOption.Suppress))).
If you are using dependency injection, you may have some work to move that to the Autofac-based way of doing things in Orchard.
If you want your work to appear seamlessly in the Orchard admin, you may want to decorate your admin controllers with the Admin attribute. If you want your front-end to use the current theme, you'll have to add Themed attributes and maybe refactor your views so that they only emit HTML for the content zone instead of for the whole page.
Add a manifest (module.txt) to your module folder and you should be good to go.

Oracle E-Business Suite: finding dependent objects in file system

I have a seemingly simple task in oracle e-business suite to accomplish. I need to extend an object to add an additional field from the database. (In this case, supplier's department needs to appear in a datagrid)
I've found a couple of sites and some documentation that tells you how this works (updating a view object, updating a Java class, recompiling and ftp-ing the files back to the server). The problem is every tutorial I've seen so far makes the assumption you already know where the impacted files are.
I'm struggling with trying to figure out what files I need from my server. I've looked at the About this page link which I think points me in the right direction, but I've only found one object.
Any thoughts on how I can find the files I want?
To find all dependent objects of the base Oracle Application page you wish to extend, use the "About this page" link shown at the bottom-left corner of the base page. The link renders the About page which displays page definition, current session, and technology stack information for that base page. If you do not see the "About this page" link, verify that the FND_DIAGNOSTICS profile option is enabled.
Find the VO Object name from the View Object column. Click on it to view the SQL query behind the VO. Next You will have to create a new View Object that contains your extended code. Create a directory structure so that you can copy the existing VO from the App server into it. To get the existing VO from $JAVA_TOP
Log on to App server (get with the sys admin to better understand your environment)-
1.cd $JAVA_TOP/oracle/apps/<xxx> (where xxx is your product tops directory).
2.tar -cvf <xxx>_top.tar xxx.. repeat for as many modules as you might need.
3.FTP each .tar file to \jdevhome\jdev\myclasses.
4.Extract each .tar file in the \jdevhome\jdev\myclasses and \jdevhome\jdev\myprojects directories.

Resources