Need Help with Connect by function oracle 10g
Hi all.
I've a recursive table containing follow data:
ID ParentID PARENT_NAME PAGE_NAME
1363416 1 Central de Relacionamento Back Office
1363416 1 Central de Relacionamento Campanhas da Central de Relacionamento
1363416 1 Central de Relacionamento Cartas de Cobrança
1363416 1 Central de Relacionamento Cartão Pernambucanas
1363416 1 Central de Relacionamento Comunicados
1363416 1 Central de Relacionamento Localização
1363416 1 Central de Relacionamento Lojas
1363416 1 Central de Relacionamento Monitoria Qualidade
1363416 1 Central de Relacionamento PDD - Provisão para Devedores Duvidosos
1363416 1 Central de Relacionamento Pessoas
1363416 1 Central de Relacionamento Tabela de desconto para repactuação
1363416 1 Central de Relacionamento Telefones Úteis
1363416 1 Central de Relacionamento Voip
1363416 1 Central de Relacionamento Últimas Notícias
2554644 1363416 Telefones Úteis Escritorios de Cobrança
2554644 1363416 Telefones Úteis Ramais dos Supervisores
2554644 1363416 Telefones Úteis Telefone das Seguradoras
2554661 1363416 Monitoria Qualidade Check list
2554661 1363416 Monitoria Qualidade Circularização
2554661 1363416 Monitoria Qualidade Destaques em Qualidade
2554661 1363416 Monitoria Qualidade Dicas
2554661 1363416 Monitoria Qualidade Elogios
2554661 1363416 Monitoria Qualidade Estratégia da Monitoria
2554661 1363416 Monitoria Qualidade Etapas do Atendimento
2554661 1363416 Monitoria Qualidade O presente
2554661 1363416 Monitoria Qualidade Pontuação
2554661 1363416 Monitoria Qualidade Premiação
2554661 1363416 Monitoria Qualidade Quadro de Reclamações
2554661 1363416 Monitoria Qualidade Reciclagem 2008
2554661 1363416 Monitoria Qualidade Sugestão de frases para atendimento
2920342 18955293 Aniversariantes do Mês Escala de festa de aniversariantes do mês
2925074 18955293 Treinamento Inicial Projeto Tutor
2925111 68690269 Cartão Pernambucanas Anuidade
2925111 68690269 Cartão Pernambucanas Atendimento ao Cliente
2925111 68690269 Cartão Pernambucanas Bloqueio do Cartão
2925111 68690269 Cartão Pernambucanas Limite do cliente e Composição do Minimo
2925111 68690269 Cartão Pernambucanas Pagamentos
2925111 68690269 Cartão Pernambucanas Produtos Financeiros
2925111 68690269 Cartão Pernambucanas Repactuação
2925111 68690269 Cartão Pernambucanas Tarifas e Taxas
2927101 2925111 Pagamentos Dúvidas sobre pagamento não baixado
5429937 1363416 Cartas de Cobrança Modelo de carta que pode ser utilizada pela loja
5429937 1363416 Cartas de Cobrança Regua de Cobrança CRP
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Alto ticket - 10 dias
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Antigo - 10 dias
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Novo com PPA
5431168 17275745 Cartas de Cobrança - 10 dias em atraso Cliente Padrão - 10 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Alto ticket- 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Antigo - 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente Padrão- 50 dias
5431251 17275745 Carta de Cobrança - 50 dias em atraso Cliente novo com PPA - 50 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Alto ticket -75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Antigo - 75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente Padrão - 75 dias
5431521 17275745 Carta de Cobrança - 75 dias Cliente novo com PPA - 75 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Alto Ticket - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Antigo - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente Padrão - 90 dias
5431575 17275745 Carta de Cobrança - 90 dias Cliente novo com PPA - 90 dias
9484330 1363416 Últimas Notícias Ura Ativa
11350383 1363416 Campanhas da Central de Relacionamento Campanha de Incentivo 2009
11350383 1363416 Campanhas da Central de Relacionamento Result campanha de arrecadação Brinquedos
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 50 dias em atraso
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 75 dias
17275745 5429937 Regua de Cobrança CRP Carta de Cobrança - 90 dias
17275745 5429937 Regua de Cobrança CRP Carta de cobrança de 90 a 120 dias - Reforço
17275745 5429937 Regua de Cobrança CRP Cartas de Cobrança - 10 dias em atraso
18955293 1363416 Pessoas Aniversariantes do Mês
18955293 1363416 Pessoas Critérios para participação no processo
18955293 1363416 Pessoas Serviço de fonoaudiologia
18955293 1363416 Pessoas Treinamento Inicial
18955293 1363416 Pessoas Troca de turno
19652362 1363416 Comunicados AcordoReacordo
19652362 1363416 Comunicados Assessoria Externa
19652362 1363416 Comunicados Atendimento
19652362 1363416 Comunicados Etapas do atendimento
19652362 1363416 Comunicados FaturasBoletos
19652362 1363416 Comunicados Mastercard
19652362 1363416 Comunicados Procedimentos Internos da Central de Relacionamento
19652362 1363416 Comunicados Produtos Financeiros
19652362 1363416 Comunicados Recado
19652362 1363416 Comunicados Rediscagem
19652362 1363416 Comunicados Result
19652362 1363416 Comunicados Rotativo
19652362 1363416 Comunicados Todos os Comunicados
19657794 19652362 AcordoReacordo 036 - Procedimentos para acordos - repactuação
19657881 19652362 Assessoria Externa 009 - Cobrança Externa
19657881 19652362 Assessoria Externa 025 - Bloqueio telefones – Envio Escritórios
19657881 19652362 Assessoria Externa CI 01409 - Opção de envio de Boleto Bradesco pelos Escrit
19658018 19652362 Etapas do atendimento 01407 - Etapas de atendimento - fechamento
19658018 19652362 Etapas do atendimento 01707 - Etapas do Atendimento- Negociação
19658018 19652362 Etapas do atendimento 04706 - Etapas de atendimento - Identificação
19658018 19652362 Etapas do atendimento 04806 - Etapas de atendimento - Fundamentação
19658018 19652362 Etapas do atendimento 05906 - Argumentação utilizada para pag da dívida
19658123 19652362 Atendimento 00408 - Consulta contrato - Artigos
19658123 19652362 Atendimento 00709 - Abordagem de Cliente em Dia
19658123 19652362 Atendimento 00907 - Informações sobre limite de crédito - análise.
19658123 19652362 Atendimento 00908 - Cartas de Cobrança enviada com menos de 10 dias
19658123 19652362 Atendimento 01107- Cobrança de Funcionários
19658123 19652362 Atendimento 01306 - Procedimento para cliente falecido
19658123 19652362 Atendimento 01508 - Script de encerramento do atendimento
19658123 19652362 Atendimento 01806 - Reclamações e Faltas Graves
19658123 19652362 Atendimento 02207 - Erro no Tempo de atraso do Cartão Pernambucanas Ma1
19658123 19652362 Atendimento 02207 - Erro no Tempo de atraso do Cartão Pernambucanas Mas
19658123 19652362 Atendimento 02606 - Fluxo de reclamações
19658123 19652362 Atendimento 03506 - Transferência para CCPE
19658123 19652362 Atendimento 03707 - Plano de crédito - 100 dias para pagar
19658123 19652362 Atendimento 03806 - Agendamento no prazo de bloqueio
19658123 19652362 Atendimento 03906 - Informações sobre Ação Judicial
19658123 19652362 Atendimento 06206 - Acionamento de cadastro - Blended
19658123 19652362 Atendimento 06306 - Espera de cliente em linha
19658123 19652362 Atendimento CI 00409 - Fluxo de depósito identificado
19658123 19652362 Atendimento CI 00809 - Notificação Extrajudicial
19658123 19652362 Atendimento CI 02708 - Novas regras para SACs (CCPE)
19658123 19652362 Atendimento Procedimento para alteração desbloqueio e inclusão de tel
19658123 19652362 Atendimento Queda de ligaçãoTel mudo
19658192 19652362 FaturasBoletos CI 00609 - Boleto Bancário
19658192 19652362 FaturasBoletos CI 01109 - Projeto Boleto
19658253 19652362 Mastercard 00309 - Cobrança do cartão Pernambucanas Mastercard
19658253 19652362 Mastercard 00807 -Telas para consulta do cartão Pernambucanas masterca
19658253 19652362 Mastercard 01808 - Problemas Mastercard
19658253 19652362 Mastercard 02808 - Pagamento do cartão Mastercard enquadrado
19658253 19652362 Mastercard 03607- Atraso na Baixa de pagamento Mastercard
19658253 19652362 Mastercard 05407 -Piloto Cartão de Crédito
19658308 19652362 Procedimentos Internos da Central de Relacionamento 006 - 08 Alteração conduta
19658308 19652362 Procedimentos Internos da Central de Relacionamento 01906 - Contato com terceiros
19658308 19652362 Procedimentos Internos da Central de Relacionamento 01907 - Novos números 0800
19658308 19652362 Procedimentos Internos da Central de Relacionamento 022-08 - Proc concessão de des
19658308 19652362 Procedimentos Internos da Central de Relacionamento 02507 - Políticas de cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento 03206 - Segmen de cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento 06407 - GAB -Gestão das
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 00105 - Orientação do uso
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 00909 - Saldo Residual no
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01108 - Alteração da taxa de
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01509 - Mensagem (Ura
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01609 - Envio de SMS
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 01709 - Procedimento para
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02308 - Cobrança G30
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02408 - Tarifa de Cobrança
19658308 19652362 Procedimentos Internos da Central de Relacionamento CI 02508 - URA ativa
19658308 19652362 Procedimentos Internos da Central de Relacionamento Custo Efetivo Total - CET
19658364 19652362 Produtos Financeiros 012 - Informações sobre seguro
19658364 19652362 Produtos Financeiros 01208 - Seguro de Acidentes Pessoais
19658364 19652362 Produtos Financeiros 01807 - Cobrança de Seguro
19658364 19652362 Produtos Financeiros 02707 - Procedimentos para clientes que possuem seguro
19658364 19652362 Produtos Financeiros 028 - Roteiro cobrança
19658364 19652362 Produtos Financeiros 03107 - Garantia estendida por telemarketing
19658364 19652362 Produtos Financeiros 060 - Plano odontológico (OdontoPrev)
19658364 19652362 Produtos Financeiros CI 01608 - Auto Crédito Fácil Pernambucanas
19658428 19652362 Recado CI 00707- Abordagem no telefone de referência
19658428 19652362 Recado CI 01406 - Recados (complemento V)
19658428 19652362 Recado CI 02008 - Recados acima de 90 em atraso
19658428 19652362 Recado CI 04006 - Recados em caixa postal - Inclusão de telefones
19658461 19652362 Rediscagem CI 00106 - Rediscagem
19658461 19652362 Rediscagem CI 02306 - Rediscagem Estado do Mato Grosso
19658502 19652362 Result CI 00108 - Cobrança Suspensa – Alteração de result
19658502 19652362 Result CI 00208 - Registro das negociações
19658502 19652362 Result CI 00607 - Adequação de result (sem contato com o cliente
19658502 19652362 Result CI 01307 - Novo Detalhe (Hospitalizado_Detido_Incapacitado)
19658502 19652362 Result CI 03306 - Result - Acima de 3 Recados
19658502 19652362 Result CI 04506 - Rotinas Internas - Limpeza da base
19658502 19652362 Result CI 05206 - Circularização – Novo result
19658502 19652362 Result CI 05806 - Result Chamada Consulta
19658729 19652362 Rotativo CI 00406 - Rotativo e parcelado
19658729 19652362 Rotativo CI 00508 - Cobrança do Rotativo - Consulta extrato
19658729 19652362 Rotativo CI 00606 - Cobrança Saldo Rotativo
19658729 19652362 Rotativo CI 02607 - Despesa financeira indevida - rotativo
19658729 19652362 Rotativo CI00308 - Alteração na data de corte do Rotativo (Dezembro
19786821 18955293 Serviço de fonoaudiologia Dia Mundial da Voz
19786821 18955293 Serviço de fonoaudiologia Uso consciente do headset
43616876 2554661 Elogios Alexandre Porfírio da Costa
43616876 2554661 Elogios Edson Oliveira Carvalho
43616876 2554661 Elogios Ludmila Balbino
43616876 2554661 Elogios Maria de Nazaré Castro
49660886 18955293 Critérios para participação no processo Processo Seletivo Interno - (Blended)
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - 07 a 60 Manhã
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - 07 a 60 Tarde
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - Blended Manhã
63947787 11350383 Campanha de Incentivo 2009 Ganhadores de Junho - Blended Tarde
68690269 1363416 Cartão Pernambucanas Cartão Pernambucanas Mastercard
68690269 1363416 Cartão Pernambucanas Plano Parcelado
68690269 1363416 Cartão Pernambucanas Plano Rotativo
68692287 68690269 Plano Rotativo Extrato Rotativo
68692287 68690269 Plano Rotativo Tabela de vencimento e data de corte
68692287 68690269 Plano Rotativo Taxas do Rotativo
69758205 1363416 Localização Procedimentos
69758205 1363416 Localização Result's e Gab
69758205 1363416 Localização Sites para consulta de telefone
72482521 1363416 Lojas Abertura de Lojas - Feriado 02.11.09
72482521 1363416 Lojas Abertura de Lojas 01.11.2009
ok and what do you want us to do?
Even before you complete your questin please make sure we have
create/inserts
actual o/p expected o/p
Thanks,
Bhushan
Similar Messages
-
Need ACES attention - connection pooling in oracle 10g rel 1
I am using TOMCAT 5.0.19 Webserver and ORACLE 10g REL 1 as the database server. I have to restart the TOMCAT Webserver in order to establish connection atleast twice or thrice in a weak. Why I am unable to see the connection pooling in oracle 10g rel 1. How to revive or establish the setup. My objective is to have a centralised oracle 10g rel 1 database server and the applications of java are run thru centralised Webserver Tomcat 5.0.19.
Can anyone please help me out optimizing the design setup.
Regards
Vijay Kumarby putting 'Need ACES' in your post title, you might have actually reduced the number of people reading your post, in other words someone >who might have suggested Thanks John for your reply. I changed the subject of the thread after not getting any reply for past 10 days. Last two days I have been updating with plea for attention to my problem. Finally I thought pulling attention of ACES, then only I edited the subject.
Now, problem I am facing is not in oracle database but in application server. Actually we are running web applications thru Tomcat accessing Oracle 10g rel 1. I am often losing connection with web server. The users are unable to login in the web application. I was told to check oracle database server. I just checked alert log and found no errors. I just asked them to shutdown and restart the web server Tomcat 5.0. It then worked fine. This is temporary. I need to ensure where the problem is. Could you please guide me in checking various parameters or files to be checked to optimise connection pooling.
Regards
Vijay Kumar -
Need help with connecting file inputs to arrays
In this assignment I have a program that will do the following: display a list of names inputed by the user in reverse order, display any names that begin with M or m, and display any names with 5 or more letters. This is all done with arrays.
That was the fun part. The next part requires me to take the names from a Notepad file, them through the arrays and then output them to a second Notepad file.
Here is the original program: (view in full screen so that the code doesn't get jumbled)
import java.io.*; //Imports the Java library
class progB //Defines class
public static void main (String[] arguments) throws IOException
BufferedReader keyboard; //<-
InputStreamReader reader; // Allows the program to
reader = new InputStreamReader (System.in); // read the the keyboard
keyboard = new BufferedReader (reader); //<-
String name; //Assigns the name variable which will be parsed into...
int newnames; //...the integer variable for the amount of names.
int order = 0; //The integer variable that will be used to set the array size
String[] array; //Dynamic array (empty)
System.out.println (" How many names do you want to input?"); //This will get the number that will later define the array
name = keyboard.readLine ();
newnames = Integer.parseInt (name); // Converts the String into the Integer variable
array = new String [newnames]; //This defines the size of the array
DataInput Imp = new DataInputStream (System.in); //Allows data to be input into the array
String temp;
int length; //Defines the length of the array for a loop later on
for (order = 0 ; order < newnames ; order++) //<-
{ // Takes the inputed names and
System.out.println (" Please input name "); // gives them a number according to
temp = keyboard.readLine (); // the order they were inputed in
array [order] = temp; //<-
for (order = newnames - 1 ; order >= 0 ; order--) //<-
{ // Outputs the names in the reverse
System.out.print (" \n "); // order that they were inputed
System.out.println (" Name " + order + " is " + array [order]); //<-
for (order = 0 ; order < newnames ; order++) //<-
if (array [order].startsWith ("M") || array [order].startsWith ("m")) // Finds and outputs any and all
{ // names that begin with M or m
System.out.print (" \n "); //
System.out.println (array [order] + (" starts with M or m")); //
} //<-
for (order = 0 ; order < newnames ; order++) //<-
length = array [order].length (); //
if (length >= 5) // Finds and outputs names
{ // with 5 or more letters
System.out.print (" \n "); //
System.out.println ("Name " + array [order] + " have 5 or more letters "); //<-
}The notepad file contains the following names:
jim
laruie
tim
timothy
manny
joseph
matty
amanda
I have tried various methods but the one thing that really gets me is the fact that i can't find a way to connect the names to the arrays. Opening the file with FileInputStream is easy enough but using the names and then outputing them is quite hard. (unless i'm thinking too hard and there really is a simple method)By "connect", do you just mean you want to put the names into an array?
array[0] = "jim"
array[1] = "laruie"
and so on?
That shouldn't be difficult at all, provided you know how to open a file for reading, and how to read a line of text from it. You can just read the line of text, put it in the array position you want, until the file is exhausted. Then open a file for writing, loop through the array, and write a line.
What part of all that do you need help with? -
Need help with user defined function
Hello SDN,
I need some help with a user-defined function. My source message contains multiple
generic records (1000 char string), and my target message is 1 header record,
then multiple generic records. See description of source and target messages below:
Source:
GenericRecordTable 1..unbounded
Row (1000 char string)
Target:
Field1 (char5)
Field2 (char5)
Field3 (char5)
IT_Data
GenericRecordTable 1..unbounded
Row (1000 char string)
Basically, what I need to do in my user defined funtion is to map the first record
in my source record to the 3 header fields, then map all of the rest of the records
(starting from line 2) into the GenericRecordTable.
Can someone please help me with the code for the user defined function(s) for this
mapping?
Thank you.hi,
Activities
1. To create a new user-defined function, in the data-flow editor, choose Create New Function (This
graphic is explained in the accompanying text), which is located on the lower left-hand side of the
screen. In the menu, choose Simple Function or Advanced Function.
2. In the window that appears, specify the attributes of the new function:
Name
Technical name of the function. The name is displayed in the function chooser and on the data-flow
object.
Description
Description of how the function is used.
Cache
Function type (see above)
Argument Count
In this table, you specify the number of input values the function can process, and name them. All
functions are of type String.
3. In the window that appears, you can create Java source code:
a. You can import Java packages to your methods from the Imports input field, by specifying them
separated by a comma or semi-colon:
You do not need to import the packages java.lang., java.util., java.io., and java.lang.reflect. since
all message mappings require these packages and therefore import them. You should be able to
access standard JDK and J2EE packages of the SAP Web Application Server by simply specifying the
package under Import. In other words, you do not have to import it as an archive into the Integration
Repository. You can also access classes of the SAP XML Toolkit, the SAP Java Connector, and the
SAP Logging Service (see also: Runtime Environment (Java-Mappings)).
In addition to the standard packages, you can also specify Java packages that you have imported as
archives and that are located in the same, or in an underlying software component version as the
message mapping.
b. Create your Java source text in the editor window or copy source text from another editor.
4. Confirm with Save and Close.
5. User-defined functions are limited to the message mapping in which you created the function. To
save the new function, save the message mapping.
6. To test the function, use the test environment.
The new function is now visible in the User-Defined function category. When you select this category,
a corresponding button is displayed in the function chooser pushbutton bar. To edit, delete, or add the
function to the data-flow editor, choose the arrow next to the button and select from the list box
displayed.
http://help.sap.com/saphelp_nw04/helpdata/en/d9/718e40496f6f1de10000000a1550b0/content.htm
http://java.sun.com/j2se/1.5.0/docs/api/
/people/krishna.moorthyp/blog/2006/07/29/documentation-html-editor-in-xi
/people/sap.user72/blog/2006/02/06/xi-mapping-tool-exports
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm
UDF -
http://help.sap.com/saphelp_nw04/helpdata/en/22/e127f28b572243b4324879c6bf05a0/content.htm
Regards -
MSI P67A-C45 (B3) Newb needs Help with connections..
Hi all..
First time posting here, but have been in the shadows for quite a while..
Anyway, i decided to finally take the plunge, and build my own PC, and now i'm beginning to hit a few bumps.
I have a couple of questions that i would like some help with, if possible to reassure myself i may be in the right direction..
I bought THIS PSU and was hoping someone could tell me where the Blue connectors (one labelled CP and one labelled U1) Connect to?
Is it into JPWR2? And does it/do they only connect in the correct way? (Do i remove the plastic cap and attach both?
and i bought THIS VIDEO/GRAPHICS CARD and i'm guessing the RED "PCI express" and "SLI ready" connect to that somehow (Haven't opened box yet for card)
Again, wondering is there a certain way for them to connect.
Also, from my chassis, the "AC '97" and "HDA" connectors go to JAUD (I guess), does it matter which one? (I currently have "HDA" connected)
I have i5 2500k already on board. (If that makes a difference).Quote from: Ben_Cartwright on 26-May-11, 22:05:35
Do the Audio plugs go into JAUD? and does it matter which one?
Yep, connect the front panel audio to the JAUD. If you need the pin layout, it says in the manual. I would say the HDA connector is the one to connect.
Quote from: Ben_Cartwright on 26-May-11, 22:05:35
Any recommendations for testing it all, before i plug it in, and press the power?
Should i (Can i) test individual parts first?
Thanks again.
Check all power connections, seating of the RAM and add-on cards, check the HSF is plugged into the fan header, and obvious things like that.
As for testing, enter the BIOS and make sure the CPU isn't running too hot. Set up the RAM with the required timings and voltage, and test with >>Memtest86<< for several hours. No point starting the Windows installation if say your RAM has errors, since it will corrupt files during the install, if it installs at all. -
CS5.5 need help with connecting to wsdl
Hello,
I'm new to Dreamweaver CS5.5 and i'm looking for a simple way to connect to a CFC wsdl web service.
Basically need to pass 1 parameter to the webservice and have it return a string result from our database.
Is this possible to do from dreamweaver, using javascript ?
thanks.Those crosshairs are controllers for an effect. The first thing to do is to start turning off layers (eyeball) until you find the layer with the crosshairs. Once you've isolated the layer make sure that it's not a pre-comp, press F3 to reveal the ECW, and check the effects. If you can't turn the effects on and off then or access any of the settings the layer is locked. What would really help here is a screenshot. I can't tell much from the photo because I can't see what's under the hood.
-
Need help with connected / linked pop-up menus
I want to select a preset.
What I did is create 2 pop-up menus. The first with the preset folders and the second with the presets from that folder.
Each pop-up group has a pop-up and a static field with the current choise.
After selecting a different value from the first pop-up menu I want to have the second popup menu filled with the new, right presets of that folder.
The first time everything works correct.
However when selecting a different folder I see that the "preset table" is filled with the correct new preset of that folder. Also the static field below the second pop-up menu shows the first value of the correct new presets. But the second pop-up menu itself still contains the presets of the first folder and not the new folder.
Yet in the Observer I see that the preset table contains the right and new presets.
My code is below.
I based it on the sample in the SDK manual.
Question: How can I update the second pop-up menu so that the pop-up menu shows the right presets.
Code below
local LrApplication = import 'LrApplication'
local LrPathUtils = import 'LrPathUtils'
local LrFileUtils = import 'LrFileUtils'
local LrBinding = import "LrBinding"
local LrDialogs = import "LrDialogs"local LrFunctionContext = import "LrFunctionContext"
local LrView = import "LrView"
local bind = LrView.bind -- shortcut for bind() method
-- https://github.com/kikito/inspect.lua
local inspect = require 'inspect'
local logFilename = 'PresetList'
local myLogger = import 'LrLogger'( logFilename )
myLogger:enable( "logfile" )
local logPath
Name emptyLogFile
Purpose Clears the existing log file.
From cookbook: http://cookbooks.adobe.com/post_Clearing_your_logfile_automatically-19677.html
function emptyLogFile()
--local myLogger = import 'LrLogger'( 'Stash' )
myLogger:disable()
logPath = LrPathUtils.child(LrPathUtils.getStandardFilePath('documents'), logFilename .. ".log")
if LrFileUtils.exists( logPath ) then
local success, reason = LrFileUtils.delete( logPath )
if not success then
logger:error("Error deleting existing logfile!" .. reason)
end
end
myLogger:enable( "logfile" )
end
Name getLocationLogFile.
Purpose Returns the full path of the current log file.
function getLocationLogFile()
return logPath
end
local function getPresetFolders()
-- Get all folders with presets
local lrPresetFolders = LrApplication.developPresetFolders()
local presetFolderCache = {}
local record = {}
for i, fo in ipairs( lrPresetFolders ) do
record = {title = fo:getName(), value = fo }
--record = {title = fo:getName(), value = fo:getName() }
--myLogger:info( "folder name = " .. fo:getName() )
table.insert ( presetFolderCache, record )
end
-- myLogger:info("Voor de listing")
-- myLogger:info("preset Folders : " .. inspect ( presetFolderCache ) )
return presetFolderCache
end
local function getPresets ( folderObject )
local presets = folderObject:getDevelopPresets()
local presetCache = {}
local record = {}
for j, p in ipairs( presets ) do
record = {title = p:getName(), value = p:getName() }
--record = {title = p:getName(), value = p:getName() }
myLogger:info( "getPresets = " .. p:getName() )
table.insert ( presetCache, record )
end
myLogger:info("presets : " .. inspect ( presetCache ) )
return presetCache
end
local function ChoosePreset()
emptyLogFile()
local presetFolders = getPresetFolders()
local currentPresetFolder = presetFolders[1]["value"]
local presets = getPresets ( currentPresetFolder )
myLogger:info(presets)
-- myLogger:info("preset Folders : " .. inspect ( presetFolders ) )
LrFunctionContext.callWithContext( 'Pop-up example', function( context )
local f = LrView.osFactory() -- obtain view factory
local properties = LrBinding.makePropertyTable( context ) -- make prop table
-- create some keys with initial values
properties.presetFolder = presetFolders[1]["value"] -- for radio buttons and pop-up menu
properties.preset = presets[1]["value"]
properties:addObserver( 'presetFolder', function( properties, key, newValue )
myLogger:info("Observer - get preset list" )
currentPresetFolder = properties.presetFolder
presets = getPresets ( currentPresetFolder )
myLogger:info(presets)
myLogger:info("Observer - Preset table: " .. inspect ( presets ) )
-- Set the new value
properties.preset = presets[1]["value"]
myLogger:info("Observer: " .. presets[1]["title"] )
end )
-- myLogger:info("presetFolder = " .. properties.presetFolder )
-- myLogger:info("preset = " .. properties.preset )
local contents = f:column { -- create view hierarchy
fill_horizontal = 1,
spacing = f:control_spacing(),
bind_to_object = properties, -- default bound table is the one we made
f:group_box {
title = "Preset folders",
fill_horizontal = 1,
spacing = f:control_spacing(),
f:popup_menu {
value = bind 'presetFolder', -- current value bound to same key as static text
items = presetFolders
f:static_text {
fill_horizontal = 1,
title = bind 'presetFolder', -- bound to same key as current selection
f:group_box {
title = "Presets",
fill_horizontal = 1,
spacing = f:control_spacing(),
f:popup_menu {
value = bind 'preset', -- current value bound to same key as static text
items = presets
-- items = getPresets ( currentPresetFolder )
f:static_text {
fill_horizontal = 1,
title = bind 'preset', -- bound to same key as current selection
local result = LrDialogs.presentModalDialog( -- invoke the dialog
title = "Select preset",
contents = contents,
end
end
-- Now display the dialogs
ChoosePreset()That should work because you are likely to be creating a new table each time computeNewItems() executes..
Sometime the bind function doesn't recognise whether the contents of a table bound to a property changes. So if you use something like this:
local myItems = computeNewItems() -- compute array of tables with title and value members
properties['myPresetItems'] = myItems -- assign to bound member of property table.
it will work the first time. If you then do this:
myItems = computeNewItems() -- compute array of tables with title and value members but using existing variable
properties['myPresetItems'] = myItems -- assign to bound member of property table. Change might not be noticed by bind.
In this instance you would need to reassign the same value again. i.e.
properties['myPresetItems'] = myItems -- assign to bound member of property table again to force bind to check for table values.
Setting a property with the same value twice seems to trick bind into checking to see whether you have bound a table. I'm not sure whether this trick is only required on some versions of LR (e.g. LR 2) or only on one of the platforms, but even if it isn't required in LR 5 it will help improve your backwards compatibility and it shouldn't cause any harm to continue using it in LR 5.
Matt -
Need help with connecting laptop
Hi there,
I looked through the boards and found some messages that kind of fit to my problem, but not completely so here goes.
I have a gateway desktop(windows xp) connected to dsl (charter) and a laptop(gateway solo with windows xp) that I am trying to connect through a wireless router (Linksys wrt54g).
When I connect the wireless router to my laptop it says it is connected, but I cannot get a webpage to appear and once my router is connected I cannot use my desktop online.
I am sure there is just some configurations that need done, but I'm not that familiar with alot of the comuter lingo in order to figure this one out on my own. I mainly use the desktop, but I would like to configure the laptop so I can use it online when needed. Help and keep it simple please...
Another question...do I need to use the wireless router or can I somehow connect my laptop through my desktop or just through my dsl connection?
Thanks, DeannaConnect the Modem to the Internet Port on the Router.
Then , Connect the Computer using a different
Ethernet Cable to Port 1 or Port 2 on the Router.
Now, Press the Reset Button on the rear panel of the Router
for 12 Seconds. Then, Release the Reset Button,
Unplug the Power Adapter to the Router. After 10 Seconds,
Unplug the Power Adapter to the Modem. Then Wait for
30 Seconds, Re-connect the Modem, and once the Lights are
up on the Modem, Re-connect the Linksys Router.
If yes, Open a new Internet Explorer
Page, and in the address bar, type http://192.168.1.1, press
return, And when asked for Username and Password,
Leave the Username blank and in the Password field,
type admin . This will help you access the Router's
Console.
In the Router's Setup Page, just below Setup Tab,
in the blue line, you could an option " MAC Address Clone "
Click on that, Enable it, Save the Settings
Below the Setup Tab of the Router's Console,
Change the MTU from "AUTO" to "MANUAL" , and
Set the Size to 1400, Save the Settings,
Powercycle the Modem and the Router.
Check the Connections.
If you are able to go Online when hard wired to the Router.
Then make your computer wireless and verify . . . -
Need help with Connect to iTunes error.
My iPhone 3GS is stuck with the "Connect to iTunes" image. It will not go away.
It happened when I tried to get the IOS 6.0 update. I had the same issue with my iPad when I tried getting the update but at least my iTunes recognized my iPad after 2 or 3 days. I cannot wait that long to get my phone working again.
Right now, iTunes will not recognize my phone at all.
I have tried most of the troubleshooting tips i.e. I'm running the latest version of iTunes, I have restarted my laptop, I have done a few gard resets on my iPhone, power down, power up..etc..etc.
I'm using a PC with windows 7.
Any help/suggestions will be much appreciated.
Thanks is advance.See:
iOS: Unable to Update or Restore
http://support.apple.com/kb/ht1808 -
Need Help With Save As function Very Important
i working on a project and i have to create a Save As function for it. When you click on Save As its supposed to open a dialog window where u can choose the where you would like to save the file and what you would like to name it. I know there is alot wrong with my code but i'm not sure on how to fix it so any and all help is greatly appreciated
private void doSaveAs(){
//display file dialog
FileDialog fDialog2 = new FileDialog (this, "Save As...", FileDialog.SAVE);
fDialog2.setVisible(true);
//Set the file name chosen by user
String name = fDialog2.getFile();
// user canceled file selection, return without doing anything.
if(name == null)
return;
fileName = fDialog2.getDirectory() + name;
// Try to create a file writer
FileWriter writer = null;
try{
writer = new FileWriter(fileName);
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message",
"Error writing the file: "+ioe.toString());
dialog.setVisible(true);
return;
BufferedWriter bWriter = new BufferedWriter(writer);
//Try to write the file
StringBuffer textBuffer = new StringBuffer();
try {
String textLine = bWriter.write(2);
while (textLine != null) {
textBuffer.append(textLine + '\n');
textLine = bWriter.write(name);
bWriter.close();
writer.close();
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
dialog.setVisible(true);
return;
setTitle("JavaEdit " +name); // reset frame title
text.setText(textBuffer.toString());
nullAnd again with indentation
private void doSaveAs(){
//display file dialog
FileDialog fDialog2 = new FileDialog (this, "Save As...",
FileDialog.SAVE);
fDialog2.setVisible(true);
//Set the file name chosen by user
String name = fDialog2.getFile();
// user canceled file selection, return without doing anything.
if(name == null)
return;
fileName = fDialog2.getDirectory() + name;
// Try to create a file writer
FileWriter writer = null;
try{
writer = new FileWriter(fileName);
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing the file: "+ioe.toString());
dialog.setVisible(true);
return;
BufferedWriter bWriter = new BufferedWriter(writer);
//Try to write the file
StringBuffer textBuffer = new StringBuffer();
try {
String textLine = bWriter.write(2);
while (textLine != null) {
textBuffer.append(textLine + '\n');
textLine = bWriter.write(name);
bWriter.close();
writer.close();
} catch (IOException ioe){
MessageDialog dialog = new MessageDialog (this, "Error Message", "Error writing file: "+ioe.toString());
dialog.setVisible(true);
return;
setTitle("JavaEdit " +name); // reset frame title
text.setText(textBuffer.toString());
} -
Need help with PL/SQL functions
Hi,
Is there a way to compare if a set of elements is present in another set using some function?
Example: Is it possible to find out if all words present in 'BANQUE SAFRA SA' is present in 'BANQUE JACOB SAFRA (SUISSE) SA' using some function in Oracle 9i?
Any suggestion would be appreciated.
Thank you,
AnushreeBoneist,
your solution would giv "false positives":
SQL> with my_tab as (select 'BANQUE JACOB SAFRA (SUISSE) SA' col1 from dual union all
2 select 'BANQUE SAFRA (SUISSE) SB' col1 from dual union all
3 select 'BANQUE SAFRA SA' col1 from dual union all
4 select 'BANQUE SAFRANE SA' col1 from dual)
5 -- end of mimicking your data. USE SQL below!
6 select * from my_tab
7 where col1 like replace('BANQUE SAFRA SA', ' ', '%');
COL1
BANQUE JACOB SAFRA (SUISSE) SA
BANQUE SAFRA SA
BANQUE SAFRANE SA Here is a PL/SQL funcion that does not expect the words in the specific order:
SQL> DECLARE
2 FUNCTION strInStr(
3 a IN VARCHAR2,
4 b IN VARCHAR2)
5 RETURN VARCHAR2
6 IS
7 i PLS_INTEGER;
8 startpos PLS_INTEGER;
9 endpos PLS_INTEGER;
10 word VARCHAR2(4000);
11 BEGIN
12 FOR i IN 1 .. LENGTH(a) - LENGTH(REPLACE(a, ' ')) + 1 LOOP
13 startpos := INSTR(' ' || a, ' ', 1, i);
14 endpos := INSTR(a || ' ', ' ', 1, i);
15 word := SUBSTR(a, startpos, endpos - startpos);
16
17 IF ' ' || b || ' ' NOT LIKE '% ' || word || ' %' THEN
18 RETURN 'N';
19 END IF;
20 END LOOP;
21
22 RETURN 'Y';
23 END;
24 BEGIN
25 DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
26 DBMS_OUTPUT.put_line(strInStr('SAFRA BANQUE SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
27 DBMS_OUTPUT.put_line(strInStr('BANQUE SAFRA FRANCE', 'BANQUE JACOB SAFRA (SUISSE) SA'));
28 DBMS_OUTPUT.put_line(strInStr('QUE SAFRA SA', 'BANQUE JACOB SAFRA (SUISSE) SA'));
29 END;
30 /
Y
Y
N
N -
Need help with an array function
I'm using the array index function and i would like to be able to control what elements go out on it. For example, if i wanted only the first element to go out, i don't want the second element to send out zero. Is there any way i can control what elements leave the array index function. I also don't understand what the index inputs do on that function either. If anyone has any advice on the application or can modify it in any way, please help.
Attachments:
Array and for loop.vi 1190 KBThe index inputs determine what elements are retrieved. For example of you would wire a 10 and a 20 to your two index inputs, you would bet element #10 and element #20 of your array. You can resize it to get any desired number of elements.
If you don't wire the index inputs, you'll get the first two elements.
If you only wire the top index input (e.g a 10), you'll get element #10 and #11.
LabVIEW Champion . Do more with less code and in less time . -
Need help with an analytic function I think
I have a table as such:
BID, POSITIONDATE
1 3/10/2009
1 3/11/2009
1 3/12/2009
1 3/13/2009
1 3/13/2009
1 3/13/2009
1 3/14/2009
I need to select a count(*) from this table for EACH day in MARCH, but the table is missing the days of 3/1 - 3/9
I need my result set to be:
BID, POSITIONDATE, COUNT(*)
1 3/1/2009 0
1 3/2/2009 0
1 3/3/2009 0
1 3/10/2009 1
1 3/11/2009 1
1 3/12/2009 1
1 3/13/2009 3
1 3/14/2009 1
I thought LAG would do it but I cannot figure out how to get it to "make up the dates of 3/1-3/9 since those dates aren't actually in the table)
I also tried creating a "FAKE" table (T1) with the dates of 3/1 -> 3/31 and outer joining to it, but that didn't seem to work either.
Any tips/suggestions??
Chriswith t1
as
select to_date('03/01/2009','MM/DD/YYYY')-1 + level as Date1
from dual
where (to_date('03/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('03/01/2009','MM/DD/YYYY'))
connect by level<=31
select * from t1
DATE1
3/1/2009
3/2/2009
3/3/2009
3/4/2009
3/5/2009
3/6/2009
3/7/2009
3/8/2009
3/9/2009
3/10/2009
3/11/2009
3/12/2009
3/13/2009
3/14/2009
3/15/2009
3/16/2009
3/17/2009
3/18/2009
3/19/2009
3/20/2009
3/21/2009
3/22/2009
3/23/2009
3/24/2009
3/25/2009
3/26/2009
3/27/2009
3/28/2009
3/29/2009
3/30/2009
3/31/2009
31 Rows Selected
with t1
as
select to_date('02/01/2009','MM/DD/YYYY')-1 + level as Date1
from dual
where (to_date('02/01/2009','MM/DD/YYYY')-1+level) <= last_day(to_date('02/01/2009','MM/DD/YYYY'))
connect by level<=31
select * from t1
DATE1
2/1/2009
2/2/2009
2/3/2009
2/4/2009
2/5/2009
2/6/2009
2/7/2009
2/8/2009
2/9/2009
2/10/2009
2/11/2009
2/12/2009
2/13/2009
2/14/2009
2/15/2009
2/16/2009
2/17/2009
2/18/2009
2/19/2009
2/20/2009
2/21/2009
2/22/2009
2/23/2009
2/24/2009
2/25/2009
2/26/2009
2/27/2009
2/28/2009
28 Rows Selected
I probably should change the variable to MM/YYYY and leave out day I guess, because if they put a day larger than 1, then I would end up with less than a full month. -
Need Help with Connecting IPad to WiFI E2500 Router
Have set up Router OK. Created Flashdrive EZ
How do I connect my IPAD now to WiFi since there is no USB port on my Ipad??Although Im not particularly familiar about the significance of Flashdrive EZ to your inquiry, the way to connect your Ipad to your wifi network can be accomplished without using a USB cable. Tap settings and turn on your WIFI. Select your E2500s SSID from the list. If you had set up a security password, type it when required.
The Search Function is your friend.... and Google too.
How to Secure your Network
How to Upgrade Routers Firmware
Setting-Up a Router with DSL Internet Service
Setting-Up a Router with Cable Internet Service
How to Hard Reset or 30/30/30 your Router -
I just purchased a itouch and when i try to connect to the wireless networks that pop it it will give me the check mark, when i open safari and try to access a web page i.e. google, it tells me safari cant find a server? even when my wireless symbol at the top is full blue? what do i need to do. I purchased it 3 days ago connected it to my laptop and loaded all my songs and some photos, other than that i haven't been able to do anything, no GPS, no itunes or youtube, im getting ready to take it back!
thanks for the reply, i know if uses the wifi to find me, anytime im around a wireless network say i pull up my networks to connect to and the locked ones i know i cant get to w/o a password, but say its titled (lynksys) it will give me the checkmark and my wifi status will appear in the blue, as to the encryption thing im not sure, right now it says im connected to a hpsetup network, when i go to the settings it shows me the ip address and at the bottom there is an HTTP thing that allows me to select off,manual, or auto. im kinda tech. dumb.
Maybe you are looking for
-
Resolution problem with Mini DisplayPort to DVI Adapter
Hi, I have a unibody MBP 15', running on 10.5.8. I use 'Mini DisplayPort to DVI Adapter' (http://store.apple.com/us/product/MB570Z/A?fnode=MTY1NDA5OQ&mco=Nzk2MDk5OQ) to connect to my external HP LP3065 30' monitor. I get max resolution of 1280 x 800
-
Passing of Milestone data in BAPI_EH_POST fm for expected event creation?
HI, If non-sap system will try to post expected event through bapi_eh_post to sap em, Is it possible to create expected event in sap em by providing values to milestone data in bapi eh post and attach an expected event profile for the event handler.
-
Rebuild Thumbnail at Every Load
Every time I open up iPhoto is insists on _rebuilding thumbnail caches_. This just started to happen with my 2008 iMac. Everything is up-to date. I do have 87gb worth of photos, but it has never affected it before. Thanks for any advice!
-
Namespaces dissappeared under SWCV
Hi, In my ESR of XI dev (only), for two SWCV among 5, I have no more the Namespaces in the tree (left side). They completely disappeared ! I continue to see them if I open the SWCV (right side) or by doing a search. But why I cannot see them in the t
-
Hi everybody, just a quick question. What might be a way or the best way to realize the following SQLs with ODI (11.1.1.7). It seems that SQLs with EXISTS / NOT EXISTS are unexpectedly hard to realize. --Q1 SELECT a.* FROM tab_a a WHERE EXISTS (