Questions tagged [entityreference]

89 questions
61
votes
2 answers

How do I include &, <, > etc in XML attribute values

I want to create an XML file which will be used to store the structure of a Java program. I am able to successfully parse the Java program and create the tags as required. The problem arises when I try to include the source code inside my tags,…
Sudh
  • 1,265
  • 2
  • 19
  • 30
28
votes
1 answer

Which are the HTML, and XML, special characters?

What are the special reserved character entities in HTML and in XML? The information that I have says: HTML: & (replace with &) < (replace with <) > (replace with >) " (replace with ") ' (replace with ') XML: < (replace with…
Ian Boyd
  • 246,734
  • 253
  • 869
  • 1,219
10
votes
2 answers

obtaing the GUID for an EntityReference using Plugins in DynamicsCRM

This question is in relation to a Plugin which I am now creating for Dynamics CRM 2011. I have an entity which has 5 attributes. 1 of these attributes is a Lookup to another entity. What I am trying to do with my Plugin is to retreive the Guid of…
Calibre2010
  • 3,729
  • 9
  • 25
  • 35
7
votes
1 answer

Entity Framework - Inserting entity with multiple models and databases

I have my domain split into multiple Entity Framework models. I have some shared entities that span multiple models (named Lookup), however, these are replaced with "using" references using the methods described in Working With Large Models In…
Reddog
  • 15,219
  • 3
  • 51
  • 63
6
votes
3 answers

Conditionally escape special xml characters

I have looked around a lot but have not been able to find a built-in .Net method that will only escape special XML characters: <, >, &, ' and " if it's not a tag. For example, take the following text: Test& bold italic <
Amir
  • 486
  • 4
  • 14
3
votes
3 answers

How to send email by simple email address using crm?

I'm working with Dynamics CRM 2016, I want to send an Email from crm using an email address that the user insert (the email Id is taken from a field in incident-Entity and not from crm-user) according to examples online the option is to use…
Damkulul
  • 1,406
  • 2
  • 25
  • 59
3
votes
1 answer

drupal 8 BaseFieldDefinition entity_reference with condition

I am not sure if this is the right way to implement this, so I hope you can help me. I am trying to reference a custom content entity in Drupal 8 with the condition that only the entities created by the current user should show. Basically CUSTOM…
soipo
  • 495
  • 5
  • 18
3
votes
2 answers

How can I allow only specific users to view specific fields of a content type in Drupal?

I'm setting up a Drupal 7 site where members with the role of "student" are asked to submit reviews about members with the role of "teacher." I need each student to be able to review all the teachers at once, and then I need to build a view where…
Kladky
  • 81
  • 1
  • 7
2
votes
1 answer

Drupal 7, Get values of an Entity Reference in a Field Collection

I've got a field collection, which contains A copy field A user field, via entity reference Now when I try to access the copy field by storing the collection in $collection, via $collection->field_my_collection_copy->value(); I get what im…
Kasper
  • 1,282
  • 4
  • 20
  • 39
2
votes
1 answer

Dynamics CRM 2011 filtering data returned from web service

I am trying to filter data by the EntityReference with no luck. Without the where clause it runs fine with the where clause I get the following error: The server did not provide a meaningful reply; this might be caused by a contract mismatch, a…
Andrew
  • 9,967
  • 10
  • 64
  • 103
2
votes
0 answers

Why Unicode codepoints are needed to use AHK hotstrings in WSL

AutoHotKey cannot insert numbers on the WSL unless I use codepoints I would like to use python3 every time I use pipenv. For that, I need to insert: pip --python /usr/bin/python3 etc.. However, I don't want to type --python /usr/bin/python3 every…
2
votes
1 answer

Migrate taxonomy reference field into entity reference

Am trying to migrate a taxonomy-reference field attached to a field_collection entity-type (Drupal 7) into an entity-reference field attached to a paragraphs entity-type (Drupal 8.6). Although it seems one of the basic tasks to do while migration…
2
votes
0 answers

Write entity reference to a value of attribute

I now use lxml module to generate XML file by Python. We must define some entity references to be parsed in our external system. Normally, all text string of elements are escaped on output to XML string: from lxml import etree root =…
furushchev
  • 2,539
  • 2
  • 10
  • 16
2
votes
1 answer

How to get to Foreign keys in the ADO.NET entity model?

I have 3 tables (and corresponding entities in the entity model) Game: Id - primay key ... other columns Player: Id - primary key ... other columns GamePlayer (a player can participate in many games) GameId --> foreign key from Game PlayerId -->…
Shankar
  • 1,634
  • 1
  • 18
  • 23
2
votes
1 answer

How to write out an EntityReference (e.g.  ) to an XmlWriter, read by XmlNodeReader?

Background I'm reading and writing an XML document using reader and writer, with filtering logic in between the read and write operations to determine which parts read should be written back out (effectively it strips some tags out) ... My choice of…
John K
  • 28,441
  • 31
  • 139
  • 229
1
2 3 4 5 6