Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
issues
cheeku
Hi all,
i am facing 2 issues.
1. i am using symbol table in my data capture template. The symbol table contains one container which in turn contains various items. one of the item in conatiner has a replicant with minimum specified as 3, but when i open the DCT, it does not show me any item of replicant rather it shows only the '+' sign. when i click on this it opens 3 items which are in replicant.
Hhow i can display these 3 minimun item on load of DCT ?
2. i am using 'use lib'. as
use lib 'Y:/default/main/Group/WORKAREA/global/configuration/';
i want to use some variable instead of "Group" . i have tried it in each and every way. but its not working.
how do i remove the hardcoding of "Group".
i even tried the 'BEGIN' bloack its also not working.
Find more posts tagged with
Comments
Adam Stoller
1. Try setting
default="3"
as well.
2. How would you be determining Group? You would need to do that within the begin block as well - something like:
use strict;
use warnings;
my $X = '';
BEGIN {
use TeamSite::Config;
$X = TeamSite::Config::iwgethome();
print "IN BEGIN: X=$X\n";
print "IN BEGIN:\n\t".join("\n\t",
@INC)
."\n";
};
use lib "
$X
/local/lib/TESTING";
print "POST BEGIN: X=$X\n";
print "POST BEGIN:\n\t".join("\n\t",
@INC)
."\n";
On my system this yields:
IN BEGIN:
X=/usr/app/iwov/teamsite
IN BEGIN:
/usr/app/iwov/teamsite/iw-perl/lib
/usr/app/iwov/teamsite/iw-perl/site/lib
/usr/app/iwov/teamsite/iw-perl/vendor/lib
.
POST BEGIN:
X=
POST BEGIN:
/usr/app/iwov/teamsite/local/lib/TESTING
/usr/app/iwov/teamsite/iw-perl/lib
/usr/app/iwov/teamsite/iw-perl/site/lib
/usr/app/iwov/teamsite/iw-perl/vendor/lib
.
--fish
Senior Consultant, Quotient Inc.
http://www.quotient-inc.com
cheeku
HI ,
Thanx for the solutions.Solution of first problem is working perfectly.
in the second case, i do not want to pick the whole path which is in TeamSite::Config::iwgethome();
i want to pick a particular folder name iin this whole path. i tried this by spliting this whole path and taking it in an array. but it failed.
i am also having this folder name in a variable in my tpl file.
can you tell me how can i use this variable in "use lib' or how to split the above path in BEGIN block?
TestReport.rptdesign
CrosstabData.txt
jbonifaci
I believe Adam was giving a generic example, you should be able to apply the concept to what you are doing. If you cannot, please post your code with specific examples of what is not working.