Locked variables

Stimulsoft Reports.NET discussion
Max Shamanov
Posts: 786
Joined: Tue Sep 07, 2021 10:11 am

Re: Locked variables

Post by Max Shamanov »

Hello,

You need to change all highlighted "True" to "False".

Thank you.
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: Locked variables

Post by dmasterplan »

Hi devs,

Sorry, I misunderstood this. Your instruction was to set the last element to False but I had it set to True and I applied it to all variables.

BUT setting it to False won't solve the locked issue.

I was about to give up as I was doing it again and again for two hours including punching and kicking the bag BUT something whispered in my ear and say (in Michael Jackson's voice) " ♪ you are not alone, I am here with you ♫"
So I experimented and removed one comma after the fourth element, removing the blank element or parameter or whatever you call it (screenshots attached).

And voila, it is not locked anymore!

I hope this would help other devs who has issue like mine.

Regards,

dmasterplan
Attachments
locked variable.png
locked variable.png (12.06 KiB) Viewed 436 times
unlocked variable.png
unlocked variable.png (5.52 KiB) Viewed 436 times
blank element.png
blank element.png (61.51 KiB) Viewed 436 times
remove blank element.png
remove blank element.png (64.64 KiB) Viewed 436 times
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Locked variables

Post by Lech Kulikowski »

Hello,


The issue was in one of builds of 2015.3.x version. Variables created in this build need change. You can manually edit mrt file in notepad or use the tool in the attachment.
Also you can use the following code:

foreach (StiVariable variable in report.Dictionary.Variables)
{
variable.Inherited = false;
}

Thank you.
Attachments
LockVariableFix.zip
(3.22 MiB) Downloaded 65 times
User avatar
dmasterplan
Posts: 143
Joined: Thu Mar 17, 2022 4:04 am
Location: Philippines

Re: Locked variables

Post by dmasterplan »

Oh, thank you for that!
We are using 2014.3.0 build at the moment.

I am happy that it is fixed in the newer version.

Regards ;)
Lech Kulikowski
Posts: 6238
Joined: Tue Mar 20, 2018 5:34 am

Re: Locked variables

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply