Welcome Guest ( Log In | Register )


 
Reply to this topicNew Topic
Datamapper Scratch Pad Variables
eGroups Migratio...
post Dec 23 2008, 08:08 AM
Post #1


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


Hi,

Do anyone has idea about the below issue:

I am using scratch pad variables to map to target field. In Simulation trace I can see the value of the scratch pad variable correctly but still it did not fire it to target field. In some other map it does the desired function but sometimes I have seen this it is not mapping value to output field.

Is there any special reason for values to be mapped to output field?

Thanks for help!!

Neeraj
Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:08 AM
Post #2


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


Hi Neeraj,

Scratchpad variables are not “fired” as soon as there is no “live” (input) data available being mapped to a field on the same level (container).

Regards,

Bas
Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:10 AM
Post #3


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


Hi Bas,

Thanks for your response.

If I understood correctly, you mean I must have some other DLN with input value on the same level or container. Even if the scratch pad variable has some value and I don’t have other links at same level (with value), it won’t fire the link for scratch pad.

Am I right?

Thanks again.

Neeraj

Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:10 AM
Post #4


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


QUOTE (eGroups Migration @ Dec 23 2008, 09:10 AM) *
Hi Bas,

Thanks for your response.

If I understood correctly, you mean I must have some other DLN with input value on the same level or container. Even if the scratch pad variable has some value and I don’t have other links at same level (with value), it won’t fire the link for scratch pad.

Am I right?

Thanks again.

Neeraj


Neeraj,

You are completely right. The only way to work around this (in case you have no other fields to map), is to drag a link from the input to your destination field and overwrite the value (src expression) with the scratchpad variable.

Regards,

Bas
Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:11 AM
Post #5


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


QUOTE (eGroups Migration @ Dec 23 2008, 09:10 AM) *
Neeraj,

You are completely right. The only way to work around this (in case you have no other fields to map), is to drag a link from the input to your destination field and overwrite the value (src expression) with the scratchpad variable.

Regards,

Bas


or you can do a "force write" to force the scratchpad variable to be mapped to the destination field irregardless of whether there's existing DLN on the same level.

Michael
Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:12 AM
Post #6


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


QUOTE (eGroups Migration @ Dec 23 2008, 09:11 AM) *
or you can do a "force write" to force the scratchpad variable to be mapped to the destination field irregardless of whether there's existing DLN on the same level.

Michael


Yes, the force write is a second good option, although it might have the unwanted side-effect that the field is created “always”. In case you have containers on a higher level being filled with scratchpad variables as well, these fields will be created as well, since the child is being created in a “forced” way.

Bas
Go to the top of the page
 
+Quote Post
eGroups Migratio...
post Dec 23 2008, 08:12 AM
Post #7


Community Admin
Group Icon

Group: Administrators
Posts: 100,048
Joined: 19-December 08
Member No.: 258


QUOTE (eGroups Migration @ Dec 23 2008, 09:12 AM) *
Yes, the force write is a second good option, although it might have the unwanted side-effect that the field is created “always”. In case you have containers on a higher level being filled with scratchpad variables as well, these fields will be created as well, since the child is being created in a “forced” way.

Bas



Thanks All. The problem is solved now. Actually I was working with ST/SE segments and ST/e02 was not mapped so whenever I was mapping value to SE/e02….result was……nothing….

So as per your remarks, I mapped ST/e02 and then SE/e02 also worked fine….because both are at same level…

Thanks again…

Regards,

Neeraj
Go to the top of the page
 
+Quote Post

Reply to this topicNew Topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Skin designed by IPB Forum Skins