I have a Problem with Biztalk Mapper
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > I have a Problem with Biztalk Mapper




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    I have a Problem with Biztalk Mapper  
Raj


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-21-04 04:09 AM

I have to create a Parent Child relationship when i insert data into SQL
Server tables, I create GUID as primary key and i need the same GUID as the
Foreign key for insertion into another table, I am unable to achieve this
since the Functiod that uses Inline C# is being executed once for each call
and hence i have two seperate GUIDs,
Is there any way out

Thanks in advance
Raj







[ Post a follow-up to this message ]



    RE: I have a Problem with Biztalk Mapper  
Prasad Sripathi Panditharadhya [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
06-26-04 03:53 PM

In your Inline C# you can maintain global variables that can remember the
state information across different functoid calls, and thus you can
remember if you have already generated a GUID before.

The code that you put in a InlineC# functoid would probably look something
like:


bool _globalDidWorkBefore = false;  //global variables to remember state
string _globalGuid = null; //global variable to remember state
string GetMeGuid()
{
if (! _globalDidWorkBefore)
{
_globalDidWorkBefore  = true;
_globalGuid = GenerateNewGuid();
}

return _globalGuid;
}


Thanks....

--------------------[vbcol=seagreen] 
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12
.phx.gbl[vbcol=seagreen] 
the[vbcol=seagreen] 
call[vbcol=seagreen] 

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:29 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register